`pdftoppm` produce incorrect/inconsistent results.
Hi there,
I compiled poppler with gcc -O0
, gcc -O1
, and gcc -O2
. I found that for some inputs, ppdftoppm
generated by them would emit results of huge difference.
-
Compiler :
gcc-11
(I tried withclang-13
, but it didn't have this issue). -
Compile args: compile poppler with
-O0
,-O1
, and-O2
separately. For example, compile withCC=gcc-11 CXX=g++-11 CFLAGS="-O0" CXXFLAGS="-O0"
. -
Reproduce: run
./utils/pdftoppm -mono -cropbox diff_O0_O1_O2.pdf
with threepdftoppm
, you'll observe that they produce different results. -
File: diff_O0_O1_O2.pdf
FYI, ASAN and UBSAN won't report any issue on this input.