Ticket #136 (new defect)
Opened 19 months ago
openct: strict-aliasing warning fix
| Reported by: | Stanislav Brabec | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | opensc | Version: | 0.11.1 |
| Severity: | normal | Keywords: | |
| Cc: | sbrabec@… |
Description
Attached patch prevents dereferencing of type-punned pointer in openct-0.6.11, which breaks compiler strict-aliasing rules and may lead to miscompilation.
Note that there will still remain implicit cast from size_t to unsigned int in ifd_card_read_memory() several lines lower.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
