Commit 2c8866defd94ca92005d08e4a2dcae72d10f0dac

Authored by Vincent Brillault
1 parent 9d2795aa

oleform: uncompressed strings still have the right length

Showing 1 changed file with 0 additions and 2 deletions
oletools/oleform.py
... ... @@ -194,8 +194,6 @@ def consume_GuidAndPicture(stream):
194 194 def consume_CountOfBytesWithCompressionFlag(stream):
195 195 # CountOfBytesWithCompressionFlag or CountOfCharsWithCompressionFlag: [MS-OFORMS] 2.4.14.2 or 2.4.14.3
196 196 count = stream.unpack('<L', 4)
197   - if not count & 0x80000000 and count != 0:
198   - stream.aise_error('Uncompress string length', 4)
199 197 return count & 0x7FFFFFFF
200 198  
201 199 def consume_SiteClassInfo(stream):
... ...