Message239644
I believe there is an issue with the _struct.c handling of Pascal style strings.
In the _struct.c:s_unpack_internal() function (reading 2.7.6 and 2.7.9 source from tgz ball), the size parameter 'n' is clamped to code->size-1.
As far as I can tell, 'n' is set to the correct deserialized value, but the code->size value is not set to 255. I could be incorrect, as I'm not running in a debugger.
I've attached a short repro case. Note the use of unpack_from() as otherwise unpac() will thrown an error. Additionally, I may be using it wrong, but this feels correct. |
|
Date |
User |
Action |
Args |
2015-03-30 21:27:03 | jonheiner | set | recipients:
+ jonheiner, mark.dickinson, meador.inge |
2015-03-30 21:27:03 | jonheiner | set | messageid: <1427750823.57.0.914162685824.issue23816@psf.upfronthosting.co.za> |
2015-03-30 21:27:03 | jonheiner | link | issue23816 messages |
2015-03-30 21:27:03 | jonheiner | create | |
|