128-byte annotation breaks TPEF binaries
Bug #1400313 reported by
Heikki Kultala
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.
To post a comment you must log in.
Added an assert to ProgramAnnotation constructor to prevent creating too big annotations.