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 matthijs
Recipients georg.brandl, klankschap, matthijs
Date 2008-09-16.11:38:44
SpamBayes Score 2.5995478e-10
Marked as misclassified No
Message-id <1221565143.96.0.798153397652.issue1611944@psf.upfronthosting.co.za>
In-reply-to
Content
I've written a new patch, which works a bit better. You can find the new
patch attached.

I've restructed the patch to prevent code duplication. Also, it now
works with other chunks than bext (I had a file with a list chunk which
triggered my interest in this bug). This is done with a hardcoded list
of valid chunks. However, it seems that there is no complete list of
valid chunk types, so it might be better to remove the chunk type check
alltogether.

Also, this patch explicitly checks for overflow, since taking a slice of
a sequence does not seem to trigger an IndexError, but just return an
empty sequence.
History
Date User Action Args
2008-09-16 11:39:04matthijssetrecipients: + matthijs, georg.brandl, klankschap
2008-09-16 11:39:03matthijssetmessageid: <1221565143.96.0.798153397652.issue1611944@psf.upfronthosting.co.za>
2008-09-16 11:38:47matthijslinkissue1611944 messages
2008-09-16 11:38:47matthijscreate