[issue19772] str serialization of Message object may mutate the payload and CTE.

Vajrasky Kok report at bugs.python.org
Wed Nov 27 09:47:33 CET 2013


Vajrasky Kok added the comment:

I got another inspiration.

The third patch uses copy.copy to copy the Message before mutating it in string generator, then restore it after printing the mutated message.

----------
Added file: http://bugs.python.org/file32867/fix_serialization_message_object_mutation_v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19772>
_______________________________________


More information about the Python-bugs-list mailing list