Skip to content

Fix segfault on dictionaries with odd lengths

xentrac requested to merge xentrac/pdf:fix-assertion-a-used-failed into master

It’s probably a bug that our dictionary parser is inserting a key-value “pair” into our dictionary structure which just has a key but no value, but the proximal cause of the crash was that dictentry is reading off the end of the key-value pair and getting a null pointer.

This fixes the bug revealed by the instigator in input file assertion-a-used-failed.

Merge request reports