Lower max search depth in preventing StackOverflow in ParseTrailer

This commit is contained in:
BobLd 2025-08-10 09:17:23 +01:00
parent 1031dcc221
commit a43b968ea9

View File

@ -724,7 +724,7 @@
private ObjectToken? Get(IndirectReference reference, ref ushort searchDepth)
{
if (searchDepth > 1_000)
if (searchDepth > 100)
{
throw new PdfDocumentFormatException("Reached maximum search depth while getting indirect reference.");
}