TCE

128-byte annotation breaks TPEF binaries

Bug #1400313 reported by Heikki Kultala
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TCE
New
Undecided
Unassigned

Bug Description

Size of annotation is written into TPEF file as a byte.
Upper bit of this is used for some mask purpose.

Writing a >= 128-byte annotation into TPEF file causes the reading to interpret this as annotation with length 128 bytes shorter,
which causes reading everything that comes after that annotation to be read from wrong place, leading failure to read the TPEF.

Revision history for this message
Heikki Kultala (hkultala) wrote :

Added an assert to ProgramAnnotation constructor to prevent creating too big annotations.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.