ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.05k stars 234 forks source link

Infinite loop in inline image for malformed document #354

Closed vpstuart closed 1 year ago

vpstuart commented 1 year ago

I have an example of a document (which is sadly confidential) that goes when using ContentReader goes into an infinite loop in CLexer.ScanInlineImage.

I will post a PR shortly.

vpstuart commented 1 year ago

See PR #355

ststeiger commented 1 year ago

Fixed with Commit 53b6876770c4f1cf610bb746bfcd82db53fb255f.