Skip to content

Report incorrect /Filter type with decode failure

xentrac requested to merge xentrac/pdf:fix-decode-assert-fail into master

Previously, when the instigator produced a PDF file with a stream with <</Filter 718>> in its stream dictionary, pdf was failing by aborting with an assert failure. An assert failure is not the right way to report that the program’s input is invalid. This change simply returns NULL from decode_stream in this case.

This fixes the crash on instigator-generated failure decode-assert-fail.

Edited by xentrac

Merge request reports

Loading