
Nov. 19, 2013
8:32 p.m.
19.11.13 21:59, Antoine Pitrou написав(ла):
Note some drawbacks of frame opcodes: - the decoder has to sanity check the frame opcodes (what if a frame opcode is encountered when already inside a frame?)
This is only one simple check when reading the frame opcode.
- a pickle-mutating function such as pickletools.optimize() may naively ignore the frame opcodes while rearranging the pickle stream, only to emit a new pickle with invalid frame sizes
But with naked frame sizes without opcodes it have even more chance to produce invalid pickle.