Frama-C Bug Tracking System - Frama-C | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000719 | Frama-C | Kernel | public | 2011-02-13 05:47 | 2014-02-12 16:59 |
Reporter | regehr | ||||
---|---|---|---|---|---|
Assigned To | monate | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | Frama-C Carbon-20110201 | ||||
Target Version | Fixed in Version | Frama-C Nitrogen-20111001 | |||
Summary | 0000719: unsoundness due to packed structs | ||||
Description | Analyzing the attached program like this: toplevel.opt -val -slevel 14 foo_pp.c Gives output including this: g_113.f0 ? {2240865284; } .f1 ? {-540177875780372926; } .f2 ? {-1; } .f3 ? {0; } .f4 ? {-1; } .[bits 184 to 191] ? UNINITIALIZED .f5 ? {-1; } .f6 ? {-5796648127719171460; } g_113 is of type S0 which is declared using the pack(1) pragma, which makes all fields 1-byte aligned, so there should be no padding. Not packing the struct properly causes Frama-C to have an incorrect impression about its layout. Perhaps a very strongly-worded warning should appear in the output if the pack pragma is encountered in a program, but not honored. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://bts.frama-c.com/file_download.php?file_id=172&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2011-02-13 05:47 | regehr | New Issue | |||
2011-02-13 05:47 | regehr | Status | new => assigned | ||
2011-02-13 05:47 | regehr | Assigned To | => pascal | ||
2011-02-13 05:47 | regehr | File Added: foo_pp.c | |||
2011-02-13 06:39 | pascal | Category | Plug-in > value analysis => Kernel | ||
2011-02-13 06:39 | pascal | Product Version | Frama-C GIT, precise the release id => Frama-C Carbon-20110201 | ||
2011-02-13 06:39 | pascal | Summary | unsoundness due to packed struct in r11868 => unsoundness due to packed structs | ||
2011-02-13 06:47 | pascal | Note Added: 0001488 | |||
2011-05-02 16:24 | svn | ||||
2011-05-02 16:24 | svn | Status | assigned => resolved | ||
2011-05-02 16:24 | svn | Resolution | open => fixed | ||
2011-10-10 14:13 | signoles | Fixed in Version | => Frama-C Nitrogen-20111001 | ||
2011-10-10 14:14 | signoles | Status | resolved => closed | ||
2013-12-19 01:12 | svn | Source_changeset_attached | => framac master 315f9ade | ||
2014-02-12 16:54 | monate | Source_changeset_attached | => framac stable/neon 315f9ade | ||
2014-02-12 16:59 | monate | Note Added: 0004799 | |||
2014-02-12 16:59 | monate | Assigned To | pascal => monate | ||
2014-02-12 16:59 | monate | Status | closed => resolved |