Avoid "Non-negative number required" Exception#110
Avoid "Non-negative number required" Exception#110iquirino wants to merge 1 commit intoempira:masterfrom iquirino:patch-1
Conversation
_lexer.Position = -1 cause System.IO.MemoryStream.set_Position to be -1. https://imgur.com/a/hy8TKdu
|
It should be noted that PR only handles one condition in which this exception can occur, does not fix all non-negative number errors |
|
I work with thousands pdf in a day. I think it can be merged... |
|
Is clear to me that idx validation need to be inside of startxref var instantiation |
|
Sorry @iquirino didn't mean to be rude, I actually am tracking down a dictionary read error on opening a PDF from an online system. It also generates this error and between this pr AND #95 I was hoping one of them addressed i (as pdfs open fine in acrobat). Sadly not. My warning was just to others that this may not resolve all the stream seek isues. |
|
Fixed in current internal builds of PDFsharp. |
|
Thank you! ;) |
_lexer.Position = -1 cause System.IO.MemoryStream.set_Position to be -1.
https://imgur.com/a/hy8TKdu