From 62940506f86f3a1cea5e83b68bc30dfbf7c09950 Mon Sep 17 00:00:00 2001 From: decalage2 Date: Tue, 27 Mar 2018 23:04:55 +0200 Subject: [PATCH] oleobj: fixed issue #274 in read_length_prefixed_string --- oletools/oleobj.py | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/oletools/oleobj.py b/oletools/oleobj.py index be5318b..47a0bfb 100644 --- a/oletools/oleobj.py +++ b/oletools/oleobj.py @@ -83,8 +83,9 @@ from oletools.ooxml import ZipSubFile # 2017-05-03 PL: - fixed absolute imports (issue #141) # 2018-01-18 v0.52 CH: - added support for zipped-xml-based types (docx, pptx, # xlsx), and ppt +# 2018-03-27 PL: - fixed issue #274 in read_length_prefixed_string -__version__ = '0.52' +__version__ = '0.52.4' # ----------------------------------------------------------------------------- # TODO: @@ -260,7 +261,7 @@ def read_length_prefixed_string(data, index): null_char = data.read(1) else: ansi_string = data[index:index+length-1] - null_char = data[index+length] + null_char = data[index+length-1] index += length # TODO: only in strict mode: # check the presence of the null char: diff --git a/setup.py b/setup.py index cdcd086..ba10d54 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ import os, fnmatch #--- METADATA ----------------------------------------------------------------- name = "oletools" -version = '0.52.3' +version = '0.52.4' desc = "Python tools to analyze security characteristics of MS Office and OLE files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), for Malware Analysis and Incident Response #DFIR" long_desc = open('oletools/README.rst').read() author = "Philippe Lagadec" -- libgit2 0.21.4