Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 208
    • Issues 208
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #303

Closed
Open
Created May 29, 2017 by mantis-gitlab-migration@mantis-gitlab-migration

Support for struct containing flexible array members

ID0002306: This issue was created automatically from Mantis Issue 2306. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002306 Frama-C Kernel public 2017-05-29 2017-12-17
Reporter evdenis Assigned To maroneze Resolution open
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C 14-Silicon Target Version - Fixed in Version -

Description :

Flexible array member is a feature introduced in the C99 standard of the C programming language (in particular, in section §6.7.2.1, item 16, page 103).

Test: struct cgroup { int a; int b[]; }; struct { struct cgroup cgrp; };

Frama-c run: $ frama-c rte_cgrp.c [kernel] Parsing FRAMAC_SHARE/libc/__fc_builtin_for_normalization.i (no preprocessing) [kernel] Parsing rte_cgrp.c (with preprocessing) rte_cgrp.c:5:[kernel] user error: field cgrp is declared with incomplete type struct cgroup [kernel] user error: stopping on file "rte_cgrp.c" that has errors. Add '-kernel-msg-key pp' for preprocessing command. [kernel] Frama-C aborted: invalid user input.

Steps To Reproduce :

frama-c rte_cgrp.c

Attachments

  • rte_cgrp.c
Edited Mar 23, 2021 by Andre Maroneze
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking