This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients loewis, sh, skrah
Date 2009-12-23.11:57:23
SpamBayes Score 5.5450335e-05
Marked as misclassified No
Message-id <1261569444.87.0.13634722631.issue7561@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-12-23 11:57:25skrahsetrecipients: + skrah, loewis, sh
2009-12-23 11:57:24skrahsetmessageid: <1261569444.87.0.13634722631.issue7561@psf.upfronthosting.co.za>
2009-12-23 11:57:23skrahlinkissue7561 messages
2009-12-23 11:57:23skrahcreate