Commit fde6adf1a3585b0ef2be51a55b6462bcedd830dc

Authored by decalage2
1 parent 90e75a0b

olefile: reverted slight change

oletools/thirdparty/olefile/olefile.py
... ... @@ -1030,11 +1030,10 @@ class OleDirectoryEntry:
1030 1030 #[PL] this method was added to use simple recursion instead of a complex
1031 1031 # algorithm.
1032 1032 # if this is not a storage or a leaf of the tree, nothing to do:
1033   -
1034 1033 if child_sid == NOSTREAM:
1035 1034 return
1036 1035 # check if child SID is in the proper range:
1037   - if child_sid <= 0 or child_sid >= len(self.olefile.direntries):
  1036 + if child_sid<0 or child_sid>=len(self.olefile.direntries):
1038 1037 self.olefile._raise_defect(DEFECT_INCORRECT, 'OLE DirEntry index out of range')
1039 1038 else:
1040 1039 # get child direntry:
... ...