From 09d42b43bcbac34a0c73c694f16eda43975026d8 Mon Sep 17 00:00:00 2001 From: Pavol PlaskoĊˆ Date: Thu, 31 May 2018 10:40:56 +0200 Subject: [PATCH] Fix ignoring of optional whitespace after \bin. --- oletools/rtfobj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/rtfobj.py b/oletools/rtfobj.py index c596f9b..4f2259a 100644 --- a/oletools/rtfobj.py +++ b/oletools/rtfobj.py @@ -578,7 +578,7 @@ class RtfParser(object): # it should be treated as a null length: binlen=0 # ignore optional space after \bin - if self.data[self.index] == ' ': + if self.data[self.index] == ord(' '): log.debug('\\bin: ignoring whitespace before data') self.index += 1 log.debug('\\bin: reading %d bytes of binary data' % binlen) -- libgit2 0.21.4