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.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to