-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Olevba not expecting optional ProjectCompatVersion record #833
Comments
Hi, I think this issue should be fixed with PR #723, but I haven't had time to test it yet. |
@decalage2 Thanks! The 0.0.11 version of that Addin seems to pass the examination of olevba, but Excel complains that:
let me know if you can think of any other places in the vbaProject.bin file that errors could be hiding. |
The error shown above is now fixed thanks to PR #723, so I close this issue. However, there seems to be another XML parsing issue with your XLAM file: |
Thanks for the update. What program is displaying that xml error? I’ve inspected the XML files and they all appear to start with:
So is there a problem with the “yes”? Does it indicate which XML file has the issue? |
I don't know what the actual problem is, but I get this error when parsing your latest releases of addin.xlam up to 0.0.14 with olevba. The error comes from the ElementTree XML parser, not from olevba itself. |
The header for olevba.py says the supported formats include Excel 97-2003 (.xls), Excel 2007+ (.xlsm, .xlsb). xlam is not listed, Do excel addins have a format that olevba cannot handle? |
AFAIK, XLAM is very similar to an Excel file with macros (XLSM), so normally olevba works fine. In your case, there seems to be a slight XML issue somewhere. Does your file work with Excel? |
No it does not, which is why I was investigating it with olevba and found the earlier error. I'll see if I can find out which line in olevba is raising the exception and add a try/except block to isolate the issue in my file. |
The issue is in the file |
Affected tool:
olevba
Describe the bug
MS-OVBA defines an optional attribute in the Dir Stream called the ProjectCompatVersion record. If this record is present in the dir stream, I receive the following error:
How To Reproduce the bug
Version 0.0.10 of this file has the optional record, version 0.0.11 does not.
Expected behavior
The file should parse fine with the presence of the optional record.
Version information:
The text was updated successfully, but these errors were encountered: