From 82c4a54d92f41e173d934c30fff795c34a0d5888 Mon Sep 17 00:00:00 2001 From: decalage2 Date: Tue, 7 Feb 2017 22:12:06 +0100 Subject: [PATCH] olevba: temporary fix for issue #132 - the dir stream could not be parsed on some Mac files --- oletools/olevba.py | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 9f06ff4..ad9eae6 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -26,7 +26,7 @@ https://github.com/unixfreak0037/officeparser # === LICENSE ================================================================== -# olevba is copyright (c) 2014-2016 Philippe Lagadec (http://www.decalage.info) +# olevba is copyright (c) 2014-2017 Philippe Lagadec (http://www.decalage.info) # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, @@ -188,8 +188,9 @@ from __future__ import print_function # 2016-09-12 PL: - enabled packrat to improve pyparsing performance # 2016-10-25 PL: - fixed raise and print statements for Python 3 # 2016-11-03 v0.51 PL: - added EnumDateFormats and EnumSystemLanguageGroupsW +# 2017-02-07 PL: - temporary fix for issue #132 -__version__ = '0.51a' +__version__ = '0.51dev1' #------------------------------------------------------------------------------ # TODO: @@ -1416,9 +1417,12 @@ def _extract_vba(ole, vba_root, project_path, dir_path, relaxed=False): reference_sizeof_name = struct.unpack("