Message239396
When xdrlib.Packer().pack_string() is called with an unsupported value, it raises a TypeError. But it calles self.pack_uint(n) before it raises the exception so the buffer is changed.
There are two possible solutions to solve this behaviour. The argument s can be tested to be supported, or undo the call of self.pack_uint(n).
I added two alternative patches for this two solutions.
This is my first patch for cpython, I hope it is ok. |
|
Date |
User |
Action |
Args |
2015-03-27 13:05:10 | ostcar | set | recipients:
+ ostcar |
2015-03-27 13:05:10 | ostcar | set | messageid: <1427461510.09.0.808726067558.issue23790@psf.upfronthosting.co.za> |
2015-03-27 13:05:10 | ostcar | link | issue23790 messages |
2015-03-27 13:05:09 | ostcar | create | |
|