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 alanmcintyre
Recipients alanmcintyre, ebfe, mcherm, ymgve
Date 2010-08-22.01:39:48
SpamBayes Score 2.761842e-06
Marked as misclassified No
Message-id <1282441192.99.0.737340864989.issue4844@psf.upfronthosting.co.za>
In-reply-to
Content
I wrote a test for this and tried out the patch on the Python3 trunk, and it seems to work ok.  I've attached an updated patch that includes the test.

It probably wouldn't hurt to go look for other places where a struct is being unpacked without checking lengths first, and see if it makes sense to add a similar check in those places, too.  I may do that later if I have some more free time.
History
Date User Action Args
2010-08-22 01:39:55alanmcintyresetrecipients: + alanmcintyre, mcherm, ebfe, ymgve
2010-08-22 01:39:52alanmcintyresetmessageid: <1282441192.99.0.737340864989.issue4844@psf.upfronthosting.co.za>
2010-08-22 01:39:50alanmcintyrelinkissue4844 messages
2010-08-22 01:39:49alanmcintyrecreate