Skip to content

ppt_parser: Fixes iterative_decompress()#609

Open
jloehel wants to merge 1 commit intodecalage2:masterfrom
jloehel:decompress-ppt
Open

ppt_parser: Fixes iterative_decompress()#609
jloehel wants to merge 1 commit intodecalage2:masterfrom
jloehel:decompress-ppt

Conversation

@jloehel
Copy link
Copy Markdown
Contributor

@jloehel jloehel commented Sep 11, 2020

The ppt_parser.iterative_decompress() function fails if in
example the area oleStgCompressed of an ExOleObjStgCompressedAtom
record has no zlib header.

Specs: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ppt/305e541f-2c91-49c5-a742-4955330fd2b9

The function trys now to auto-detect the header in the first place
if the detection fails the function retries the decompression without
header.

Fixes: #608

Signed-off-by: Jürgen Löhel juergen.loehel@inlyse.com

The `ppt_parser.iterative_decompress()` function fails if in
example the area  `oleStgCompressed` of a `ExOleObjStgCompressedAtom`
record has no zlib header.

Specs: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ppt/305e541f-2c91-49c5-a742-4955330fd2b9

The function trys now to auto-detect the header in the first place
if the detection fails the function retries the decompression without
header.

Fixes: decalage2#608

Signed-off-by: Jürgen Löhel <juergen.loehel@inlyse.com>
@decalage2 decalage2 self-requested a review September 11, 2020 19:52
@decalage2 decalage2 self-assigned this Sep 11, 2020
@decalage2 decalage2 added this to the oletools 0.56 milestone Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ppt_parser: zlib.error: Error -3 while decompressing data: incorrect header check

2 participants