From 5fec64f9e1e040b671a4f2be90a4eb58dea909a8 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 28 Apr 2016 12:54:43 +0200 Subject: [PATCH] fixed minor error: had tested projectname_sizeof_projectname twice instead of projectdocstring --- oletools/olevba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 572d5ea..aa34ad8 100755 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -1227,7 +1227,7 @@ def _extract_vba(ole, vba_root, project_path, dir_path): projectdocstring_id = struct.unpack(" 2000: + if projectdocstring_sizeof_docstring > 2000: log.error( "PROJECTDOCSTRING_SizeOfDocString value not in range: {0}".format(projectdocstring_sizeof_docstring)) projectdocstring_docstring = dir_stream.read(projectdocstring_sizeof_docstring) -- libgit2 0.21.4