Hi,
There is an infinite loop in PIL/ImageFont.py (PIL 1.1.6) which can be
entered by using ImageFont.load. Found this while testing the py3k
port, but the attached patch is against the standard one.
--
-- Guilherme H. Polo Goncalves
--- PIL/ImageFont.py 2006-12-03 09:37:15.000000000 -0200
+++ PIL/ImageFont_mine.py 2009-01-05 15:38:13.000000000 -0200
@@ -89,8 +89,10 @@
raise SyntaxError("Not a PILfont file")
d = string.split(file.readline(), ";")
self.info = [] # FIXME: should be a dictionary
- s = file.readline()
- while s and s != "DATA\n":
+ while True:
+ s = file.readline()
+ if not s or s == "DATA\n":
+ break
self.info.append(s)
# read PILfont metrics
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig