mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-12-20 04:00:03 +08:00
Fix Issue 519 Break infinite loop parsing kid token list containing parent
This commit is contained in:
@@ -103,7 +103,7 @@
|
|||||||
do
|
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 (!current.nodeDictionary.TryGet(NameToken.Kids, pdfTokenScanner, out ArrayToken kids))
|
||||||
{
|
{
|
||||||
if (!isLenientParsing)
|
if (!isLenientParsing)
|
||||||
|
|||||||
Reference in New Issue
Block a user