Incorrect results produced by pottopm
Hi there,
I compiled poppler with clang -O0 and
clang -O2. I found that for some inputs, the generated
popptom` would emit different results.
-
Compile args: compile poppler twice. Once with
CC=clang-13 CXX=clang++-13 CFLAGS="-O0" CXXFLAGS="-O0"
. Another withCC=clang-13 CXX=clang++-13 CFLAGS="-O2" CXXFLAGS="-O2"
. -
Reproduce: run
./utils/pdftoppm -mono -cropbox diff.pdf
with twopdftoppm
, you may need to runpdftoppm (clang -O2)
a few times to observe the difference. -
File: diff.pdf
For clang -O0
compiled one, the output would always be
P4
41 42
�@
But for clang -O2
compiled one, the output sometimes change to
P4
41 42
>>@�@