Created attachment 56590 [details] pdf with huge radial shading When rendering the attached file poppler aborts with the message: Error (0): Call to Object where the object was type 11, not the expected type 1 or 2 Aborted
Created attachment 56591 [details] [review] patch to fix The problem is caused by integer overflow in Lexer.cc This can be fixed by returning a real object instead of failing on integer overflow. Patch attached.
The patch looks acceptable but i'd like if you first tried changing that code taht does the getNum to first check for isNum() and see if that is "enough" to get an acceptable output, if that works i'd prefer that to changing the Lexing since everytime we change it to fix something some other thing breaks
The number that is being read is r1A in GfxRadialShading. I tried testing the value with isNum() and if it fails, set r1A to 0 but the shading fails to render (blank page). The huge radius is not an bug but just a valid radius that happens to be larger than an unsigned integer.
Please commit the patch to both branches.
Pushed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.