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

openct-strict-aliasing.patch (0.7 kB) - added by Stanislav Brabec 19 months ago.
openct-strict-aliasing.patch

Change History

Changed 19 months ago by Stanislav Brabec

openct-strict-aliasing.patch

Note: See TracTickets for help on using tickets.