From 2ed74d73625da9cb668a77ec9a2febb9f522ea31 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 29 Oct 2024 19:54:41 +0100 Subject: [PATCH] PDF: fix nullptr dereference on invalid file Fixes https://issues.oss-fuzz.com/issues/376126833 --- autotest/gdrivers/data/pdf/invalid_srs.pdf | Bin 0 -> 1787 bytes autotest/gdrivers/pdf.py | 11 +++++++++++ frmts/pdf/pdfdataset.cpp | 5 +++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 autotest/gdrivers/data/pdf/invalid_srs.pdf diff --git a/autotest/gdrivers/data/pdf/invalid_srs.pdf b/autotest/gdrivers/data/pdf/invalid_srs.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7f1f0b3628e45bef828f09613df8a23fe741b5e5 GIT binary patch literal 1787 zcmZuyVUOB45dEHCVMSW0l_;^D#7U&85*xCVc7a@g-supEyuoGNLb7$jwtIj6ZtM^i z=otx-$;_KK&ojeKI=p*F`pmld7mgJmjH-uk*8BI!xxKA^p%oY~BJf!wXCiogPy&Tu z%8)bVdx75E^B1AsB4_dPB#`q(il0xFYS4!dmMAwGOM9O%t3$b|4JtVzpU_9~97Qei zC|%6K$#we?rmjy}ggqKi&qePD3Hr<+!&g3qn|RCzd!b~(OXF?#hJ(d&va*N&|8|~!OtRT{xU%CNSKk3N zWX$d{(1l{w_jA1`*g?-E`&vfSD| zAM2wN{pMrpHcr>?V^KDW?{o&ak-W5frlT%F<^|u0{Eioz0@M;k5xdB8&l}ksHX@&W z&1Xt(CE%QuJQ0n6Kmy#>Z_g&dJ-g*WSyoMrSljS%RW`t^Mqc|o5kT&@`AfM1C(~mv zewnDNgDOOg{5Ghaz?5%c4wto1%Tj7*=SvE+q$fLrR(>IQ9B?Z%DL+{+c~}6Ga2v zD>vF%Q>Ysy_}=;sE8_U`xGW5mCI#I^x(%X5>4@sz{^)BqNjAj{BaHgZaLLIY0>yEId(!s>A@{CxYrP+MC3G_uA z7pA_h`V6h3rL(s0j^egr#=POXYI_#&ONp-*tQ*%d^I*OZ^L