Message96838
I briefly looked at how PyByteArray_AS_STRING() is used in other places.
A similar segfault can be provoked in long_new():
int(bytearray(b''), 10)
Then, there are a couple of places where pointer arithmetic is used with
the NULL pointer. Also, memcpy(x, NULL, 0) can occur. If I'm not
mistaken, both of these work in practice but are strictly speaking
undefined behavior. |
|
Date |
User |
Action |
Args |
2009-12-23 11:57:25 | skrah | set | recipients:
+ skrah, loewis, sh |
2009-12-23 11:57:24 | skrah | set | messageid: <1261569444.87.0.13634722631.issue7561@psf.upfronthosting.co.za> |
2009-12-23 11:57:23 | skrah | link | issue7561 messages |
2009-12-23 11:57:23 | skrah | create | |
|