#140 C99 VLA in structures and initialisers

Bug
closed-fixed
None
5
2013-09-09
2013-09-07
No

There is a bug with the initialisers of variable-length arrays in structures. The length of the VLA is computed by CIL based on the first initialiser in the file. If later initialisers create larger arrays, those arrays are truncated (with a warning) instead of updating the maximal length of the VLA.

It's not obvious if the correct fix is to compute the max size of the VLA, or to add first-class support for VLAs in CIL.

Discussion

  • Gabriel Kerneis

    Gabriel Kerneis - 2013-09-09
    • status: open --> closed-fixed
     
  • Gabriel Kerneis

    Gabriel Kerneis - 2013-09-09

    Fixed in git.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks