[Image-SIG] PIL Error in loadfat()

Andreas Jung lists at andreas-jung.com
Mon Jan 26 02:35:42 EST 2004


OleFileIO.py:


    def loadfat(self, header):
        # Load the FAT table.  The header contains a sector numbers
        # for the first 109 FAT sectors.  Additional sectors are
        # described by DIF blocks (FIXME: not yet implemented)

        sect = header[76:512]
        fat = []
        for i in range(0, len(sect), 4):
            ix = i32(sect, i)
            if ix == 0xFFFFFFFEL or x == 0xFFFFFFFFL:
                                                      ^^^^^^^^^^^^^^^^

should be 'ix' and not 'x'

-aj



More information about the Image-SIG mailing list