From 96f2cffdce1858d059447cb5e7e457b6eaf26bfb Mon Sep 17 00:00:00 2001 From: decalage2 Date: Tue, 9 Jul 2019 19:59:55 +0200 Subject: [PATCH] olevba: slight fix to avoid a test to fail by mistake --- oletools/olevba.py | 4 ++-- tests/test-data/encrypted/autostart-encrypt-standardpassword.xls | Bin 29184 -> 0 bytes 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 tests/test-data/encrypted/autostart-encrypt-standardpassword.xls diff --git a/oletools/olevba.py b/oletools/olevba.py index c0e4e77..18e1de1 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -3443,9 +3443,9 @@ class VBA_Parser(object): try: from pcodedmp import pcodedmp except Exception: - # This may happen with Pypy, because pcodedmp import win_unicode_console... + # This may happen with Pypy, because pcodedmp imports win_unicode_console... # TODO: this is a workaround, we just ignore P-code - log.exception('Error when importing pcodedmp') + log.exception('Exception when importing pcodedmp') self.pcodedmp_output = '' return '' # logging is disabled after importing pcodedmp, need to re-enable it diff --git a/tests/test-data/encrypted/autostart-encrypt-standardpassword.xls b/tests/test-data/encrypted/autostart-encrypt-standardpassword.xls old mode 100755 new mode 100644 index 65c2ac7..65c2ac7 Binary files a/tests/test-data/encrypted/autostart-encrypt-standardpassword.xls and b/tests/test-data/encrypted/autostart-encrypt-standardpassword.xls differ -- libgit2 0.21.4