mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-08-20 04:31:25 +08:00
Lower max search depth in preventing StackOverflow in ParseTrailer
This commit is contained in:
parent
1031dcc221
commit
a43b968ea9
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user