SIGABRT at poppler/PDFDoc.cc:1755
Hi, we found a bug in poppler/PDFDoc.cc:1755. When the bug is triggered, the program would crash with the following backtrace.
To reproduce, run pdfunite t.pdf poc 2.pdf
(gdb) bt
#0 0x00007ffff745f8c1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7449546 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff7a5eb18 in Object::getDict (this=0x7fffffffe0c8)
at /home/users/chluo/pop/poppler/Object.h:435
#3 PDFDoc::replacePageDict (this=0x5555555bb430, pageNo=<optimized out>,
rotate=90, mediaBox=0x5555555e3b50, cropBox=0x5555555e3b70)
at /home/users/chluo/pop/poppler/PDFDoc.cc:1755
#4 0x000055555555c9fa in main (argc=<optimized out>, argv=<optimized out>)
at /home/users/chluo/pop/utils/pdfunite.cc:290
The bug is relevant to #706 (closed) and #1276 (closed).