Fix Issue 519 Break infinite loop parsing kid token list containing parent

This commit is contained in:
Fred Natzke 2022-12-06 16:29:09 +10:00
parent 29adece983
commit 9ef07b0176

View File

@ -102,8 +102,8 @@
do
{
var current = toProcess.Dequeue();
var current = toProcess.Dequeue();
if (current.reference.GetHashCode() == current.parentReference.GetHashCode()) { continue; } // Issue #519
if (!current.nodeDictionary.TryGet(NameToken.Kids, pdfTokenScanner, out ArrayToken kids))
{
if (!isLenientParsing)