View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003043 | GNUnet | testbed service | public | 2013-09-25 12:21 | 2013-12-24 20:54 |
| Reporter | Florian Dold | Assigned To | Christian Grothoff | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | Git master | ||||
| Target Version | 0.10.0 | Fixed in Version | 0.10.0 | ||
| Summary | 0003043: misaligned struct GNUNET_TESTBED_PeerConfigurationInformationMessage | ||||
| Description | The following structure struct GNUNET_TESTBED_PeerConfigurationInformationMessage { struct GNUNET_MessageHeader header; uint32_t peer_id GNUNET_PACKED; uint64_t operation_id GNUNET_PACKED; struct GNUNET_PeerIdentity peer_identity; uint16_t config_size GNUNET_PACKED; /* rest: compressed config data */ }; should have size of 4 + 4 + 8 + 64 + 2 = 82, but according to GDB: (gdb) print sizeof(struct GNUNET_TESTBED_PeerConfigurationInformationMessage) $1 = 84 The structure is clearly misaligned, *but* I still don't understand while the GNUNET_PACKED / GNUNET_NETWORK_STRUCT_* macros don't work here! While the above problem does not really matter anywhere in the C code, when defining the same struct in gnunet-java, which does not do any automatic alignment, the configuration data begins one byte later than expected. | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-09-25 12:21 | Florian Dold | New Issue | |
| 2013-09-25 12:21 | Florian Dold | Status | new => assigned |
| 2013-09-25 12:21 | Florian Dold | Assigned To | => Sree Harsha Totakura |
| 2013-09-25 20:42 | Christian Grothoff | Note Added: 0007473 | |
| 2013-09-25 20:42 | Christian Grothoff | Status | assigned => resolved |
| 2013-09-25 20:42 | Christian Grothoff | Fixed in Version | => 0.10.0 |
| 2013-09-25 20:42 | Christian Grothoff | Resolution | open => fixed |
| 2013-09-25 20:43 | Christian Grothoff | Assigned To | Sree Harsha Totakura => Christian Grothoff |
| 2013-09-25 20:43 | Christian Grothoff | Product Version | => Git master |
| 2013-09-25 20:43 | Christian Grothoff | Target Version | => 0.10.0 |
| 2013-12-24 20:54 | Christian Grothoff | Status | resolved => closed |