Issue #9 on hold

IndexError exception while opening an encrypted Excel file

Anonymous created an issue

Link to Excel file : http://sc.openoffice.org/testdocs/filetype/ms_excel_xml_encrypted_aes128.xlsx

Code

{{{

!python

!/usr/bin/env python

from OleFileIO import *

filename = "./Password.xlsx" ole = OleFileIO(filename) ole.dumpdirectory() for streamname in ole.listdir(): print streamname }}}

Output

{{{ Traceback (most recent call last): File "test.py", line 5, in <module> ole = OleFileIO(filename) File "/usr/lib/python2.7/dist-packages/PIL/OleFileIO.py", line 260, in init self.open(filename) File "/usr/lib/python2.7/dist-packages/PIL/OleFileIO.py", line 293, in open self.loaddirectory(i32(header, 48)) File "/usr/lib/python2.7/dist-packages/PIL/OleFileIO.py", line 339, in loaddirectory fp = self._open(sect) File "/usr/lib/python2.7/dist-packages/PIL/OleFileIO.py", line 405, in _open self.sectorsize, self.fat) File "/usr/lib/python2.7/dist-packages/PIL/OleFileIO.py", line 106, in init sect = fat[sect] IndexError: list index out of range }}}

Comments (2)

  1. Philippe Lagadec repo owner
    • changed status to on hold
    • removed version

    I tested this file with OleFileIO_PL version 0.22 and Python 2.6 on a Windows Vista 32 bits, and it works fine without error.

    Looking at the sample code you provided and the output, it seems you are using the original OleFileIO version from PIL, and not my version which has many bugfixes.

    Please retry with OleFileIO_PL v0.22, and tell me if you still have an error.

    Thank you,

    Philippe.

  2. Log in to comment