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

Return the data unmodified when it is empty. #388

Closed noctis0430 closed 11 months ago

noctis0430 commented 11 months ago

InflaterInputStream.Read() throw "Unexpected EOF" exception when trying to read empty data. Fixed this by simply skip processing empty data and return as it is.