[Image-SIG] PIL patch

Fredrik Lundh fredrik at pythonware.com
Tue May 17 08:09:42 CEST 2005


Daniel Arbuckle write;

> The following patch should be applied to OleFileIO.py:
>
> 298c298
> <             if ix == 0xFFFFFFFEL or x == 0xFFFFFFFFL:
> ---
> >             if ix == 0xFFFFFFFEL or ix == 0xFFFFFFFFL:

thanks, but you're almost two years late:

--- OleFileIO.py        (revision 260)
+++ OleFileIO.py        (revision 261)
@@ -11,6 +11,7 @@
 # History:
 # 1997-01-20 fl   Created
 # 1997-01-22 fl   Fixed 64-bit portability quirk
+# 2003-09-09 fl   Fixed typo in OleFileIO.loadfat (noted by Daniel Haertle)
 #
 # Notes:
 # FIXME: change filename to use "a/b/c" instead of ["a", "b", "c"]
@@ -295,7 +296,7 @@
         fat = []
         for i in range(0, len(sect), 4):
             ix = i32(sect, i)
-            if ix == 0xFFFFFFFEL or x == 0xFFFFFFFFL:
+            if ix == 0xFFFFFFFEL or ix == 0xFFFFFFFFL:
                 break
             s = self.getsect(ix)
             fat = fat + map(lambda i, s=s: i32(s, i), range(0, len(s), 4))

</F>





More information about the Image-SIG mailing list