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

Vajrasky Kok report at bugs.python.org
Wed Nov 27 09:37:52 CET 2013


Vajrasky Kok added the comment:

I come out with two patches.

The first patch using bytes generator to copy the message before mutating it in string generator, then restore it after printing the mutated message.

----------
keywords: +patch
Added file: http://bugs.python.org/file32865/fix_serialization_message_object_mutation_v1.patch

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


More information about the Python-bugs-list mailing list