Created attachment 23118 [details] test case Over at Fedora, we got a bug report against 9.56.1: https://bugzilla.redhat.com/show_bug.cgi?id=2123391 It boils down to: "gs -dPDFFitPage test.pdf" gives "Error: /typecheck in --runpdf--" whereas both "gs -dNEWPDF=false -dPDFFitPage test.pdf" (with scaling) and "gs test.pdf" (without scaling) work. I have reproduced this with ghostpdl-10.0.0rc1 as well as the current gs10.0.0 branch head (ea03f1a59), both with Fedora type so builds (using system libaries) as well as stock static builds (using all bundled libraries). Error messages differ: rc1 gives "Error: /undefined in --runpdf--" instead.
This is specific to having a square MediaBox, obviously something we ommitted in testing, in which case values are left on the operand stack. Fixed in this commit 7c33727834bcf59a79402c46fdcde25291805d35
What an incredibly fast fix! Thanks a lot. Works fine when backported to 9.56.1, too.
(In reply to M.J.G. from comment #2) > What an incredibly fast fix! Thanks a lot. Would have been quicker if we hadn't had a slew of reports from the OSS fuzzer this morning :-( > Works fine when backported to 9.56.1, too. Yes I should have said, sorry. It was a fairly obvious oversight. It should be in the next 10.00.0 release candidate, which will be tomorrow unless something else important crops up before then. I asked the build maintainer to hold off until tomorrow so I could get this one in.