[Image-SIG] XVThumbImagePlugin infinite loop fix
Nikolai Ugelvik
nikolai at netlife.no
Tue Mar 10 09:09:30 CET 2009
I sent an email regarding a bug with this module, including a patch.
Would like to have this included in 1.1.7.
-Nikolai
Original message:
Hi.
The PIL module XVThumbImagePlugin.py has an issue with XVThumb files
that do not include #END_OF_COMMENTS (or a comment section at all). I'm
not quite sure if the problem is an invalid file (is the comment
required?), but we encountered a file like this. Anyway, the result is
XVThumbImagePlugin being stuck in an infinite loop. The patch supports
files without comments and/or comment sections without #END_OF_COMMENTS.
Attached is a diff against XVThumbImagePlugin.py from PIL version 1.1.6.
(I didn't figure out where else to send the diff.)
-Nikolai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XVThumbImagePlugin.diff
Type: text/x-patch
Size: 789 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090310/e9d6c87a/attachment.bin>
More information about the Image-SIG
mailing list