poppler issueshttps://gitlab.freedesktop.org/poppler/poppler/-/issues2021-04-21T22:04:15Zhttps://gitlab.freedesktop.org/poppler/poppler/-/issues/1071Invalid Backgrounds causing SIGABRTs in `GfxShading::init`2021-04-21T22:04:15ZB HornInvalid Backgrounds causing SIGABRTs in `GfxShading::init`## Issue
Poppler SIGABRTs with the message `Internal Error (0): Call to Object where the object was type 10, not the expected type 1, 14 or 2` (and also with objects of type 11 as well, depending on input file) for certain files.
I've...## Issue
Poppler SIGABRTs with the message `Internal Error (0): Call to Object where the object was type 10, not the expected type 1, 14 or 2` (and also with objects of type 11 as well, depending on input file) for certain files.
I've tested the following versions, and the crash occurs on all of them:
* 21.04.0, built from source. What I'm fuzzing against.
* 20.09.0, from the ubuntu 20.10 package repositories.
* 0.62.0
### Backtrace
```
[#0] 0x7ffff78a88cb → __GI_raise(sig=0x6)
[#1] 0x7ffff788d864 → __GI_abort()
[#2] 0x7ffff7dca019 → GfxShading::init(GfxResources*, Dict*, OutputDev*, GfxState*)()
[#3] 0x7ffff7dcaf6f → GfxAxialShading::parse(GfxResources*, Dict*, OutputDev*, GfxState*)()
[#4] 0x7ffff7dcfc39 → GfxShading::parse(GfxResources*, Object*, OutputDev*, GfxState*)()
[#5] 0x7ffff7dcfd35 → GfxShadingPattern::parse(GfxResources*, Object*, OutputDev*, GfxState*, int)()
[#6] 0x7ffff7dd00ee → GfxPattern::parse(GfxResources*, Object*, OutputDev*, GfxState*, int)()
[#7] 0x7ffff7d92450 → GfxResources::lookupPattern(char const*, OutputDev*, GfxState*)()
[#8] 0x7ffff7d936c6 → Gfx::opSetFillColorN(Object*, int)()
[#9] 0x7ffff7d9d9a7 → Gfx::go(bool)()
```
## Testcases
* [out.pdf](/uploads/6189f89188df2524a2ac63b40746b88b/out.pdf) - afl-tmin minimized file. Not strictly a valid PDF, but does trigger the bug with pdftotext, evince, etc.
* [smallest.pdf](/uploads/0bd1d3d2f0b714a07cdf77f66d7d83d3/smallest.pdf) - smallest instance of this bug to come from my fuzzer.
## Triaging
(Line numbers are from 21.04.0's source release)
The SIGABRT is triggered by the macro `OBJECT_3TYPES_CHECK` in `Object.h`, which is only used by `Object::getNum()`.
In `GfxShading::init`, we see it gets called on line 3529:
```cpp
obj1 = dict->lookup("Background");
if (obj1.isArray()) {
if (obj1.arrayGetLength() == colorSpace->getNComps()) {
hasBackground = true;
for (i = 0; i < colorSpace->getNComps(); ++i) {
Object obj2 = obj1.arrayGet(i);
> background.c[i] = dblToCol(obj2.getNum());
}
} else {
error(errSyntaxWarning, -1, "Bad Background in shading dictionary");
}
}
```
So it seems the code is missing a check to see if `obj2` is number before we get to this point, causing the crash.
## Patch
I'm not an expert on the codebase, so please do double check this.
Seems that every other instance where `getNum()` is used in `GfxState.cc`, it is preceded by a call to `isNum()`. So a potential patch I wrote is:
```diff
diff --git a/GfxState.cc-old b/GfxState.cc
index 05ce3a8..b43818e 100644
--- a/GfxState.cc-old
+++ b/GfxState.cc
@@ -3526,7 +3526,12 @@ bool GfxShading::init(GfxResources *res, Dict *dict, OutputDev *out, GfxState *s
hasBackground = true;
for (i = 0; i < colorSpace->getNComps(); ++i) {
Object obj2 = obj1.arrayGet(i);
- background.c[i] = dblToCol(obj2.getNum());
+ if (obj2.isNum()) {
+ background.c[i] = dblToCol(obj2.getNum());
+ } else {
+ error(errSyntaxWarning, -1, "Bad Background in shading dictionary");
+ break;
+ }
}
} else {
error(errSyntaxWarning, -1, "Bad Background in shading dictionary");
```
Does resolve the issue as there are no longer any crashes when I apply the patch. However, not the cleanest fix, errors/warnings probably aren't up to the standard, etc.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1070pdftotext skips non-ASCII characters in PDF annotations2023-01-31T09:32:58ZOliver Freyermuthpdftotext skips non-ASCII characters in PDF annotationsTrying to convert [main.pdf](/uploads/cb6982832c554485d41dcbed028ea897/main.pdf) with `pdftotext` errors with:
```
Syntax Error: AnnotWidget::layoutText, cannot convert U+00EF
```
for the non-ASCII character ï (as in "naïve"), and also f...Trying to convert [main.pdf](/uploads/cb6982832c554485d41dcbed028ea897/main.pdf) with `pdftotext` errors with:
```
Syntax Error: AnnotWidget::layoutText, cannot convert U+00EF
```
for the non-ASCII character ï (as in "naïve"), and also for other such characters. They are dropped from the text output.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1069GCC 11 errors: error: argument 2 of '__atomic_load' must not be a pointer to ...2021-04-15T12:34:41ZMartin LiškaGCC 11 errors: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' typeUsing GCC 11 I see the following warnings:
```
[ 39s] cd /home/abuild/rpmbuild/BUILD/poppler-21.03.0/build/glib && /usr/bin/c++ -DG_LOG_DOMAIN=\"Poppler\" -Dpoppler_glib_EXPORTS -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0 -I/home/ab...Using GCC 11 I see the following warnings:
```
[ 39s] cd /home/abuild/rpmbuild/BUILD/poppler-21.03.0/build/glib && /usr/bin/c++ -DG_LOG_DOMAIN=\"Poppler\" -Dpoppler_glib_EXPORTS -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0 -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/fofi -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/goo -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/poppler -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/build -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/build/poppler -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib -I/home/abuild/rpmbuild/BUILD/poppler-21.03.0/build/glib -isystem /usr/include/freetype2 -isystem /usr/include/openjpeg-2.4 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/cairo -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -Wshadow -Wsuggest-override -fno-exceptions -fno-check-new -fno-common -fno-operator-names -D_DEFAULT_SOURCE -O2 -g -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pthread -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -pthread -std=c++14 -o CMakeFiles/poppler-glib.dir/poppler-action.cc.o -c /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-action.cc
[ 39s] In file included from /usr/include/glib-2.0/glib/gthread.h:32,
[ 39s] from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
[ 39s] from /usr/include/glib-2.0/glib.h:32,
[ 39s] from /usr/include/glib-2.0/gobject/gbinding.h:28,
[ 39s] from /usr/include/glib-2.0/glib-object.h:22,
[ 39s] from /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler.h:22,
[ 39s] from /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-action.cc:19:
[ 39s] /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-action.cc: In function 'GType poppler_dest_get_type()':
[ 39s] /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-private.h:154:13: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' type
[ 39s] 154 | if (g_once_init_enter(&g_define_type_id__volatile)) { \
[ 39s] | ^~~~~~~~~~~~~~~~~
[ 39s] /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-action.cc:28:1: note: in expansion of macro 'POPPLER_DEFINE_BOXED_TYPE'
[ 39s] 28 | POPPLER_DEFINE_BOXED_TYPE(PopplerDest, poppler_dest, poppler_dest_copy, poppler_dest_free)
[ 39s] | ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 39s] /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-action.cc: In function 'GType poppler_action_get_type()':
[ 39s] /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-private.h:154:13: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' type
[ 39s] 154 | if (g_once_init_enter(&g_define_type_id__volatile)) { \
[ 39s] | ^~~~~~~~~~~~~~~~~
[ 39s] /home/abuild/rpmbuild/BUILD/poppler-21.03.0/glib/poppler-action.cc:91:1: note: in expansion of macro 'POPPLER_DEFINE_BOXED_TYPE'
[ 39s] 91 | POPPLER_DEFINE_BOXED_TYPE(PopplerAction, poppler_action, poppler_action_copy, poppler_action_free)
[ 39s] | ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 39s] make[2]: *** [glib/CMakeFiles/poppler-glib.dir/build.make:120: glib/CMakeFiles/poppler-glib.dir/poppler-action.cc.o] Error 1
```https://gitlab.freedesktop.org/poppler/poppler/-/issues/1068poppler-21.04.0 undefined symbols when building with clang2021-04-13T13:23:40ZJames Beddekpoppler-21.04.0 undefined symbols when building with clang```
OS: Gentoo ~amd64
Poppler version: 21.04.0
CFLAGS="-march=znver2 -O3 -pipe"
CXXFLAGS="-march=znver2 -O3 -pipe"
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
Selected GCC ...```
OS: Gentoo ~amd64
Poppler version: 21.04.0
CFLAGS="-march=znver2 -O3 -pipe"
CXXFLAGS="-march=znver2 -O3 -pipe"
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0
```
Sample in build log:
```
FAILED: utils/pdfdetach
: && /usr/lib/llvm/12/bin/clang++ -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -Wshadow -Wsuggest-override -march=znver2 -O3 -pipe -stdlib=libstdc++ -rtlib=libgcc -unwindlib=libgcc -Wnon-virtual-dtor -Woverloaded-virtual -Wl,-O3 -Wl,--as-needed utils/CMakeFiles/pdfdetach.dir/parseargs.cc.o utils/CMakeFiles/pdfdetach.dir/Win32Console.cc.o utils/CMakeFiles/pdfdetach.dir/pdfdetach.cc.o -o utils/pdfdetach -Wl,-rpath,/var/tmp/portage/app-text/poppler-21.04.0/work/poppler-21.04.0_build: libpoppler.so.109.0.0 && :
ld.lld: error: undefined symbol: gatof
>>> referenced by parseargs.cc
>>> utils/CMakeFiles/pdfdetach.dir/parseargs.cc.o:(parseArgs)
>>> did you mean: atof
>>> defined in: /lib64/libc.so.6
ld.lld: error: undefined symbol: GlobalParams::GlobalParams(char const*)
>>> referenced by pdfdetach.cc
>>> utils/CMakeFiles/pdfdetach.dir/pdfdetach.cc.o:(main)
ld.lld: error: undefined symbol: globalParams
>>> referenced by pdfdetach.cc
>>> utils/CMakeFiles/pdfdetach.dir/pdfdetach.cc.o:(main)
>>> referenced by pdfdetach.cc
>>> utils/CMakeFiles/pdfdetach.dir/pdfdetach.cc.o:(main)
>>> referenced by pdfdetach.cc
>>> utils/CMakeFiles/pdfdetach.dir/pdfdetach.cc.o:(main)
>>> referenced 1 more times
```
Some google-fu related to `gatof` lead me to https://bugs.freedesktop.org/28605 which also matches re. `parseargs.cc/o`. So it appears that it's not linking correctly though a quick skim other the CMakeLists show nothing wrong.
Build log: [build.log.tar.xz](/uploads/00b1d8f807e33a4c801dc9baa8f31d6b/build.log.tar.xz)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1065stack overflow in Error.cc:74 with pdftops2021-04-14T07:15:57ZDoudou Huangstack overflow in Error.cc:74 with pdftopsHi, there.
There is a stack overflow in Error.cc:74, which causes a segmentation fault and may lead to denial of service in version 29c3fc62d4997bb514d4748cca264fc6868cb52d. I have also verified this from 0.74.
To reproduce, run
~~~~
...Hi, there.
There is a stack overflow in Error.cc:74, which causes a segmentation fault and may lead to denial of service in version 29c3fc62d4997bb514d4748cca264fc6868cb52d. I have also verified this from 0.74.
To reproduce, run
~~~~
pdftops -level1sep POC
~~~~
Here is the call stack reported by ASAN:
~~~~
==79735==ERROR: AddressSanitizer: stack-overflow on address 0x7ffff71b7ff8 (pc 0x7f89183c1652 bp 0x7ffff71b8590 sp 0x7ffff71b8000 T0)
#0 0x7f89183c1651 in _IO_default_xsputn (/lib/x86_64-linux-gnu/libc.so.6+0x7b651)
#1 0x7f891839451a in vfprintf (/lib/x86_64-linux-gnu/libc.so.6+0x4e51a)
#2 0x7f8918395f00 (/lib/x86_64-linux-gnu/libc.so.6+0x4ff00)
#3 0x7f891839333c in vfprintf (/lib/x86_64-linux-gnu/libc.so.6+0x4d33c)
#4 0x7f891845cc88 in __fprintf_chk (/lib/x86_64-linux-gnu/libc.so.6+0x116c88)
#5 0x7f8918cde5f1 in fprintf /usr/include/x86_64-linux-gnu/bits/stdio2.h:98
#6 0x7f8918cde5f1 in error(ErrorCategory, long long, char const*, ...) poppler/Error.cc:74
#7 0x7f8918e04aaf in Parser::getObj(bool, unsigned char const*, CryptAlgorithm, int, int, int, int, bool, bool) poppler/Parser.cc:12
#8 0x7f8918e0489b in Parser::getObj(bool, unsigned char const*, CryptAlgorithm, int, int, int, int, bool, bool) poppler/Parser.cc:14
#9 0x7f8918e89ada in XRef::fetch(int, int, int, long long*) poppler/XRef.cc:1180
#10 0x7f8918e8b45d in XRef::fetch(Ref, int) poppler/XRef.cc:1131
#11 0x7f8918df0d00 in Object::fetch(XRef*, int) const poppler/Object.cc:78
#12 0x7f8918cd73e2 in Dict::lookup(char const*, int) const poppler/Dict.cc:167
#13 0x7f8918eb71d9 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1831
#14 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#15 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#16 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#17 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#18 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#19 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#20 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#21 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#22 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#23 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#24 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#25 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#26 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#27 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#28 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#29 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#30 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#31 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#32 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#33 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#34 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#35 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#36 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#37 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#38 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#39 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#40 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#41 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#42 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#43 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#44 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#45 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#46 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#47 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#48 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#49 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#50 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#51 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#52 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#53 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#54 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#55 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#56 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#57 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#58 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#59 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#60 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#61 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#62 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#63 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#64 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#65 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#66 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#67 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#68 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#69 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#70 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#71 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#72 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#73 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#74 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#75 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#76 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#77 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#78 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#79 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#80 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#81 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#82 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#83 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#84 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#85 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#86 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#87 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#88 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#89 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#90 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#91 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#92 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#93 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#94 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#95 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#96 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#97 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#98 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#99 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) oppler/PSOutputDev.cc:1833
#100 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#101 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#102 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#103 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#104 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#105 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#106 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#107 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#108 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#109 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#110 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#111 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#112 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#113 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#114 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#115 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#116 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#117 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#118 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#119 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#120 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#121 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#122 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#123 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#124 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#125 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#126 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#127 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#128 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#129 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#130 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#131 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#132 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#133 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#134 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#135 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#136 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#137 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#138 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#139 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#140 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#141 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#142 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#143 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#144 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#145 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#146 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#147 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#148 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#149 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#150 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#151 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#152 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#153 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#154 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#155 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#156 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#157 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#158 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#159 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#160 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#161 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#162 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#163 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#164 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#165 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#166 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#167 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#168 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#169 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#170 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#171 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#172 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#173 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#174 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#175 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#176 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#177 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#178 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#179 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#180 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#181 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#182 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#183 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#184 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#185 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#186 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#187 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#188 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#189 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#190 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#191 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#192 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#193 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#194 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#195 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#196 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#197 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#198 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#199 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#200 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#201 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#202 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#203 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#204 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#205 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#206 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#207 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#208 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#209 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#210 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#211 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#212 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#213 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#214 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#215 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#216 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#217 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#218 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#219 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#220 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#221 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#222 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#223 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#224 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#225 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#226 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#227 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#228 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#229 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#230 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#231 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#232 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#233 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#234 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#235 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#236 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#237 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#238 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#239 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#240 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#241 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#242 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#243 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#244 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#245 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#246 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#247 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#248 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#249 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#250 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#251 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
#252 0x7f8918eb7543 in PSOutputDev::setupResources(Dict*) poppler/PSOutputDev.cc:1833
SUMMARY: AddressSanitizer: stack-overflow ??:0 _IO_default_xsputn
==79735==ABORTING
~~~~
[seg-error74](/uploads/d577705d132f3804ae268c2b242b00a0/seg-error74)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1064poppler 21.04 fails to print PDF2021-04-06T21:42:45Zcoogorpoppler 21.04 fails to print PDFThe german 'Aufklärungsblatt' for covid vaccination fails to print. 3rd page is barely empty
Original file:[Aufklärungsmerkblatt.pdf](/uploads/ded5d921f1ab04af5bbb47aa88736169/Aufklärungsmerkblatt.pdf)
Converted file for printing: [d0017...The german 'Aufklärungsblatt' for covid vaccination fails to print. 3rd page is barely empty
Original file:[Aufklärungsmerkblatt.pdf](/uploads/ded5d921f1ab04af5bbb47aa88736169/Aufklärungsmerkblatt.pdf)
Converted file for printing: [d00175-001](/uploads/024538c70e87d87223b5c47e6b127ed5/d00175-001)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1063MacOSX - Building for Minimum MacOSX=10.12 fails with glib error2021-04-01T20:54:04ZPartha BagchiMacOSX - Building for Minimum MacOSX=10.12 fails with glib errorclang -v
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
-------------------------...clang -v
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
---------------------------------------------------
Error Message:
[ 70%] Building CXX object glib/CMakeFiles/poppler-glib.dir/poppler-action.cc.o
/Users/partha/projects/src/sources/poppler-21.03.0/glib/poppler-action.cc:28:1: error: cannot initialize a parameter of type 'unsigned long *' with an rvalue of type
'typename std::remove_reference<decltype(*(&g_define_type_id__volatile))>::type *' (aka 'volatile unsigned long *')
POPPLER_DEFINE_BOXED_TYPE(PopplerDest, poppler_dest, poppler_dest_copy, poppler_dest_free)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/partha/projects/src/sources/poppler-21.03.0/glib/poppler-private.h:154:13: note: expanded from macro 'POPPLER_DEFINE_BOXED_TYPE'
if (g_once_init_enter(&g_define_type_id__volatile)) ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/partha/local10.12/include/glib-2.0/glib/gthread.h:260:7: note: expanded from macro 'g_once_init_enter'
(!g_atomic_pointer_get (location) && \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/partha/local10.12/include/glib-2.0/glib/gatomic.h:112:38: note: expanded from macro 'g_atomic_pointer_get'
__atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
^~~~~~~~~~~~~~~~~
/Users/partha/projects/src/sources/poppler-21.03.0/glib/poppler-action.cc:91:1: error: cannot initialize a parameter of type 'unsigned long *' with an rvalue of type
'typename std::remove_reference<decltype(*(&g_define_type_id__volatile))>::type *' (aka 'volatile unsigned long *')
POPPLER_DEFINE_BOXED_TYPE(PopplerAction, poppler_action, poppler_action_copy, poppler_action_free)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/partha/projects/src/sources/poppler-21.03.0/glib/poppler-private.h:154:13: note: expanded from macro 'POPPLER_DEFINE_BOXED_TYPE'
if (g_once_init_enter(&g_define_type_id__volatile)) ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/partha/local10.12/include/glib-2.0/glib/gthread.h:260:7: note: expanded from macro 'g_once_init_enter'
(!g_atomic_pointer_get (location) && \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/partha/local10.12/include/glib-2.0/glib/gatomic.h:112:38: note: expanded from macro 'g_atomic_pointer_get'
__atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
^~~~~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [glib/CMakeFiles/poppler-glib.dir/poppler-action.cc.o] Error 1
make[1]: *** [glib/CMakeFiles/poppler-glib.dir/all] Error 2
make: *** [all] Error 2https://gitlab.freedesktop.org/poppler/poppler/-/issues/1062pdftoppm: incorrect page size regression when using -scale-to2021-04-15T14:46:54ZAndy Claytonpdftoppm: incorrect page size regression when using -scale-toWith !807 I am seeing different behavior when using `-scale-to`. Following that fix there is white padding in the output that was not present previously and is not present in the source PDF.
I imagine the fix might be for the `scaleTo !...With !807 I am seeing different behavior when using `-scale-to`. Following that fix there is white padding in the output that was not present previously and is not present in the source PDF.
I imagine the fix might be for the `scaleTo != 0` case to assign only the larger of `pg_w` or `pg_h` to `scaleTo` while calculating the other based on resolution as before.
Command:
utils/pdftoppm -singlefile -scale-to 500 -png ./test.pdf
Input: [test.pdf](/uploads/b4fe3bfb00c6dce94a9f70f7a38c9b88/test.pdf)
Output:
| Output on master (as of 104fc940ca3c3eb8b706abd11d35be83dbcd0c3b) |
| ------ |
| ![head](/uploads/caacc1aca19bdacdf3543ec254c09a4c/head.png) |
| Output after reverting e21c83650f15a197b286f8eed8c7d723c6900925 |
| ------ |
| ![e21c8365-reverted](/uploads/3bf2bea3bf66276bce6c4d4483759e9b/e21c8365-reverted.png) |
Thanks for looking!
cc @sander @aacidhttps://gitlab.freedesktop.org/poppler/poppler/-/issues/1061Reachable abort in gmem.h:116, pdfimages2022-10-19T07:25:14ZDoudou HuangReachable abort in gmem.h:116, pdfimagesHi, there.
There is a reachable abort in gmem.h:116 in the newest commit 29c3fc62d4997bb514d4748cca264fc6868cb52d.
To reproduce, run
~~~~
pdfimages -f 1 -l 1 -opw testing -upw testing -j -p -q POC /dev/null
~~~~
This is the backtrace ...Hi, there.
There is a reachable abort in gmem.h:116 in the newest commit 29c3fc62d4997bb514d4748cca264fc6868cb52d.
To reproduce, run
~~~~
pdfimages -f 1 -l 1 -opw testing -upw testing -j -p -q POC /dev/null
~~~~
This is the backtrace reported by GDB:
~~~~
#0 0x00007ffff5b26438 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff5b2803a in __GI_abort () at abort.c:89
#2 0x0000000000405f33 in gmallocn (checkoverflow=false, size=<optimized out>, count=-12608) at poppler/goo/gmem.h:116
#3 ImageOutputDev::writeImageFile (this=this@entry=0x60e00000df60, writer=writer@entry=0x6030000045a0, format=<optimized out>, ext=<optimized out>, str=str@entry=0x61300000b480,
width=width@entry=555555555, height=5, colorMap=0x7fffffffd500) at poppler/utils/ImageOutputDev.cc:389
#4 0x000000000040752b in ImageOutputDev::writeImage (this=0x60e00000df60, state=<optimized out>, ref=<optimized out>, str=0x61300000b480, width=555555555, height=5,
colorMap=0x7fffffffd500, inlineImg=false) at poppler/utils/ImageOutputDev.cc:652
#5 0x00007ffff67f8e3b in Gfx::doImage (this=this@entry=0x61200000ba40, ref=ref@entry=0x7fffffffdb80, str=0x61300000b480, inlineImg=inlineImg@entry=false)
at poppler/poppler/Gfx.cc:4553
#6 0x00007ffff67fe0fd in Gfx::opXObject (this=0x61200000ba40, args=<optimized out>, numArgs=<optimized out>) at poppler/poppler/Gfx.cc:4095
#7 0x00007ffff67e97ba in Gfx::go (this=this@entry=0x61200000ba40, topLevel=topLevel@entry=true) at poppler/poppler/Gfx.cc:681
#8 0x00007ffff67ea400 in Gfx::display (this=this@entry=0x61200000ba40, obj=obj@entry=0x7fffffffe160, topLevel=topLevel@entry=true) at poppler/poppler/Gfx.cc:642
#9 0x00007ffff68b36ba in Page::displaySlice (this=<optimized out>, out=0x60e00000df60, out@entry=0x0, hDPI=hDPI@entry=6.9533479696278002e-310, vDPI=vDPI@entry=-nan(0xfffffffffffff),
rotate=rotate@entry=-1, useMediaBox=useMediaBox@entry=255, crop=crop@entry=255, sliceX=sliceX@entry=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=false, abortCheckCbk=0x0,
abortCheckCbkData=0x0, annotDisplayDecideCbk=0x0, annotDisplayDecideCbkData=0x0, copyXRef=false) at poppler/poppler/Page.cc:576
#10 0x00007ffff68b3cd8 in Page::display (this=<optimized out>, out=out@entry=0x0, hDPI=hDPI@entry=6.9533479696278002e-310, vDPI=vDPI@entry=-nan(0xfffffffffffff), rotate=rotate@entry=-1,
useMediaBox=useMediaBox@entry=255, crop=crop@entry=255, printing=printing@entry=false, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x0,
annotDisplayDecideCbkData=0x0, copyXRef=false) at poppler/poppler/Page.cc:521
#11 0x00007ffff68c0b46 in PDFDoc::displayPage (this=this@entry=0x610000007f40, out=0x0, out@entry=0x60e00000df60, page=page@entry=1, hDPI=6.9533479696278002e-310, hDPI@entry=72,
vDPI=-nan(0xfffffffffffff), vDPI@entry=72, rotate=-1, rotate@entry=0, useMediaBox=useMediaBox@entry=true, crop=crop@entry=false, printing=false, abortCheckCbk=0x0,
abortCheckCbkData=0x0, annotDisplayDecideCbk=0x0, annotDisplayDecideCbkData=0x0, copyXRef=false) at poppler/poppler/PDFDoc.cc:643
#12 0x00007ffff68c0c49 in PDFDoc::displayPages (this=0x610000007f40, out=out@entry=0x60e00000df60, firstPage=<optimized out>, lastPage=1, hDPI=hDPI@entry=72, vDPI=vDPI@entry=72,
rotate=rotate@entry=0, useMediaBox=useMediaBox@entry=true, crop=false, printing=false, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x0,
annotDisplayDecideCbkData=0x0) at /aflgo/scripts/fuzz/poppler/poppler/PDFDoc.cc:652
#13 0x0000000000402d4f in main (argc=3, argv=<optimized out>) at poppler/utils/pdfimages.cc:199
~~~~
Here is the file to reproduce the bug.
[abort_gmem_h_116](/uploads/59a82b49cd7c9c915afbb699e11d0fcd/abort_gmem_h_116)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1060MacOS Catalina build fails on POPPLER_DEFINE_BOXED_TYPE2021-03-26T18:19:48ZDaniel SaviMacOS Catalina build fails on POPPLER_DEFINE_BOXED_TYPEWhen trying to build libpoppler on macos, make stops with the following error:
```
poppler/glib/poppler-action.cc:28:1: error:
cannot initialize a parameter of type 'unsigned long *' with an rvalue of
type 'typename
st...When trying to build libpoppler on macos, make stops with the following error:
```
poppler/glib/poppler-action.cc:28:1: error:
cannot initialize a parameter of type 'unsigned long *' with an rvalue of
type 'typename
std::remove_reference<decltype(*(&g_define_type_id__volatile))>::type *'
(aka 'volatile unsigned long *')
POPPLER_DEFINE_BOXED_TYPE(PopplerDest, poppler_dest, poppler_dest_copy, poppler_dest_free)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poppler/glib/poppler-private.h:154:13: note:
expanded from macro 'POPPLER_DEFINE_BOXED_TYPE'
if (g_once_init_enter(&g_define_type_id__volatile)) ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gthread.h:260:7: note:
expanded from macro 'g_once_init_enter'
(!g_atomic_pointer_get (location) && \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gatomic.h:117:38: note:
expanded from macro 'g_atomic_pointer_get'
__atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
^~~~~~~~~~~~~~~~~
poppler/glib/poppler-action.cc:91:1: error:
cannot initialize a parameter of type 'unsigned long *' with an rvalue of
type 'typename
std::remove_reference<decltype(*(&g_define_type_id__volatile))>::type *'
(aka 'volatile unsigned long *')
POPPLER_DEFINE_BOXED_TYPE(PopplerAction, poppler_action, poppler_action_copy, poppler_action_free)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poppler/glib/poppler-private.h:154:13: note:
expanded from macro 'POPPLER_DEFINE_BOXED_TYPE'
if (g_once_init_enter(&g_define_type_id__volatile)) ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gthread.h:260:7: note:
expanded from macro 'g_once_init_enter'
(!g_atomic_pointer_get (location) && \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gatomic.h:117:38: note:
expanded from macro 'g_atomic_pointer_get'
__atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
```
Is it a bug or am I doing anything wrong?https://gitlab.freedesktop.org/poppler/poppler/-/issues/1058Image Masks of type XObject and Subtype Image do not render2021-03-28T14:23:16ZSteve RosenhamerImage Masks of type XObject and Subtype Image do not renderWhen rendering a PDF whose dictionary includes an image mask and the dictionary for that said image mask is the following:
```
[BitsPerComponent] 8
[ColorSpace] (DeviceGray)
[Filter] (FlateDecode)
[Height] 75
[Subtype] (Image)...When rendering a PDF whose dictionary includes an image mask and the dictionary for that said image mask is the following:
```
[BitsPerComponent] 8
[ColorSpace] (DeviceGray)
[Filter] (FlateDecode)
[Height] 75
[Subtype] (Image)
[Type] (XObject)
[Width] 216
[Length] 3348
```
As currently written the code in `Gfx::doImage` contained in `poppler/Gfx.cc` will fall through to be handled as an 'explicit mask', this code then produces an error and does not render the image because, as you can see above, there is no entry in the dictionary or `ImageMask` or `IM` of type `boolean`.
It turns out that if you adjust the code and handle this instance the same as a 'soft mask', the image draws correctly with proper transparency and the output is as expected. If you adjust the code so that the image outputs as an 'explicit mask', so just skip the mising boolean error, the image is drawn but it is not correct as the transparency is ignored.
I will attach a merge request with code that will draw this image but I do understand that I am not entirely familiar with the whole poppler ecosystem so if you want to fix it through a different methodology, it's all good.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1057Annotations don't show all non-ASCII letters in Okular2021-03-21T10:49:01ZUtku BerberoğluAnnotations don't show all non-ASCII letters in OkularI made a note in Okular, but it don't show all Lithuanian or Turkish letters. This issue in the KDE Bug Tracking System but, marekd as this is a Poppler Issue.
Reproducible: Always
Steps to Reproduce:
1. In Okular press F6
2. Select s...I made a note in Okular, but it don't show all Lithuanian or Turkish letters. This issue in the KDE Bug Tracking System but, marekd as this is a Poppler Issue.
Reproducible: Always
Steps to Reproduce:
1. In Okular press F6
2. Select second type of notes/anotation
3. write text "Evoliucija nereiškia to, kad, pvz., paukščiams privalėjo atsirasti sparnai
arba/ir, kaip ir žmonėms, – sąmonė."
Actual Results:
In new text box there is no letters: ą, č, ė
Expected Results:
Text has all letters!
Look for "ğ" letter in picture.
[Ekran_Görüntüsü_-_2021-03-20_06-46-21](/uploads/15d43ab1a9fce33494a98eb39cb17754/Ekran_Görüntüsü_-_2021-03-20_06-46-21.png)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1053Document reported as having no pages - opens fine in Firefox2021-03-04T15:46:10ZKevin BuchsDocument reported as having no pages - opens fine in FirefoxI first reported this issue with Evince, and they directed me here. https://gitlab.gnome.org/GNOME/evince/-/issues/1565 (behind a registration). I was told that Evince and pdfinfo are based upon Poppler.
I am using Ubuntu Gnu/Linux 20.0...I first reported this issue with Evince, and they directed me here. https://gitlab.gnome.org/GNOME/evince/-/issues/1565 (behind a registration). I was told that Evince and pdfinfo are based upon Poppler.
I am using Ubuntu Gnu/Linux 20.04 with current updates. Installed is Evince 3.36.7. Steps to repeat: `evince mydocument.pdf`. It produces the same result if I have evince open and select "New Window" from the toolbar hamburger menu and then select the same document.
Some addition verification on my operating environment:
```text
$ find /usr/lib -iname '*poppler*'
/usr/lib/x86_64-linux-gnu/libpoppler.so.97.0.0
/usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8.15.0
/usr/lib/x86_64-linux-gnu/libpoppler-cpp.so.0
/usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
/usr/lib/x86_64-linux-gnu/libpoppler-cpp.so.0.7.0
/usr/lib/x86_64-linux-gnu/libpoppler.so.97
```
and
```text
$ pdfinfo -v
pdfinfo version 0.86.1
Copyright 2005-2020 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
```
I am not at liberty, currently, to share any of the documents I received from a given party (some of which open correctly). They came via DocuSign. Perhaps by April 2021, I will be able to share. In the mean time, here is what the Properties dialog in Evince shows:
```text
Title: None
Location: file:///home/user/mydocument.pdf
Subject: None
Author: None
Keywords: None
Producer: PDFKit.NET 20.4.204.18649; modified using iTextSharp 5.5.13-SNAPSHOT 2000-2017 iText Group NV (DocuSign, Inc.; licensed version)
Creator: Microsoft Word
Created: 2/28/2021
Modified: 3/3/2021
Format: PDF-1.7
Number of Pages: 0
Optimized: No
Security: No
Paper Size: 0 x 0 mm
Size: 254.9 kB
```
A response on that issue requested I run some additional diagnostics:
The first one gives this:
```text
$ EV_DEBUG_JOBS=1 G_MESSAGES_DEBUG=all evince mydocument.pdf
(evince:39982): GLib-GIO-DEBUG: 11:44:03.374: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
(evince:39982): GLib-DEBUG: 11:44:03.448: unsetenv() is not thread-safe and should not be used after threads are created
(evince:39982): Gtk-DEBUG: 11:44:03.448: Connecting to session manager
(evince:39982): GLib-GIO-DEBUG: 11:44:03.513: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ?gsettings-backend?
(evince:39982): dconf-DEBUG: 11:44:03.513: watch_fast: "/org/gnome/evince/" (establishing: 0, active: 0)
(evince:39982): dconf-DEBUG: 11:44:03.514: watch_established: "/org/gnome/evince/" (establishing: 1)
(evince:39982): dconf-DEBUG: 11:44:03.534: watch_fast: "/org/gnome/evince/default/" (establishing: 0, active: 0)
(evince:39982): dconf-DEBUG: 11:44:03.535: watch_established: "/org/gnome/evince/default/" (establishing: 1)
Poppler-INFO: 11:44:03.558: Syntax error at position -1: Gen inside xref table too large (bigger than INT_MAX)
Poppler-INFO: 11:44:03.558: Syntax error at position -1: Top-level pages object is wrong type (null)
Poppler-INFO: 11:44:03.558: Syntax error at position -1: Top-level pages object is wrong type (null)
(evince:39982): dconf-DEBUG: 11:44:03.673: watch_fast: "/org/gnome/desktop/lockdown/" (establishing: 0, active: 0)
(evince:39982): dconf-DEBUG: 11:44:03.673: watch_established: "/org/gnome/desktop/lockdown/" (establishing: 1)
(evince:39982): Gtk-CRITICAL **: 11:44:03.683: gtk_icon_view_get_selected_items: assertion 'GTK_IS_ICON_VIEW (icon_view)' failed
(evince:39982): dconf-DEBUG: 11:44:06.575: unwatch_fast: "/org/gnome/evince/" (active: 1, establishing: 0)
(evince:39982): dconf-DEBUG: 11:44:06.576: change_fast
(evince:39982): dconf-DEBUG: 11:44:06.576: change_notify: /org/gnome/evince/default/window-ratio
(evince:39982): dconf-DEBUG: 11:44:06.576: unwatch_fast: "/org/gnome/evince/default/" (active: 1, establishing: 0)
(evince:39982): dconf-DEBUG: 11:44:06.576: unwatch_fast: "/org/gnome/desktop/lockdown/" (active: 1, establishing: 0)
(evince:39982): dconf-DEBUG: 11:44:06.588: sync
```
The second one shows this:
```text
$ pdfinfo mydocument.pdf
Syntax Error: Gen inside xref table too large (bigger than INT_MAX)
Syntax Error: Top-level pages object is wrong type (null)
Command Line Error: Wrong page range given: the first page (1) can not be after the last page (0).
```
Looks like it reaches a similar conclusion. The last one has this:
```text
$ qpdf --check mydocument.pdf
integer out of range converting 4294967295 from a 8-byte signed type to a 4-byte signed type
```
Oh my! 64-bit integer issue? Maybe just a decoy.
This error is repeatable and can be readily mixed in with successful operations on other documents. Note, that for the other files that open correctly received via the same means, DocuSign, I noted one was touched by iTextSharp but was PDF-1.4. Another was not touched by iTextSharp, was produced by Office 365 and was PDF-1.7.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1052Cyrillic letters display as rectangles2021-05-11T16:01:13ZDmitry ShubinCyrillic letters display as rectanglesI have two pretty similar files which use the same base font: [Chertezh_v15.pdf](/uploads/c6f10707a3eecb4c52f9f2a9816a256e/Chertezh_v15.pdf) displays well, while [Chertezh_V16.pdf](/uploads/f3b6eb4e143599c75e1ecd43cad4e590/Chertezh_V16.p...I have two pretty similar files which use the same base font: [Chertezh_v15.pdf](/uploads/c6f10707a3eecb4c52f9f2a9816a256e/Chertezh_v15.pdf) displays well, while [Chertezh_V16.pdf](/uploads/f3b6eb4e143599c75e1ecd43cad4e590/Chertezh_V16.pdf) renders Cyrillic characters as rectangle placeholders (tofu) in poppler 2021.3 (tried SVG and PNG output). Both files display well in Adobe Reader and Chrome.
Screenshot: [poppler-png-results](/uploads/9532653ce9d010ea5d199ec030745720/poppler-png-results.png)
Both files were created by "Compass 3D" software, v15 and v16 correspondingly.
Any idea on what is wrong or unsupported by poppler in the v16 file?
**Steps to reproduce:**
- Pull archlinux docker image
- Install poppler using `pacman -Sy poppler` command. Pdftocairo reports its version as `21.03.0`.
- run `pdftocairo -png -l 1 -f 1 Chertezh_v15.pdf Chertezh_V15.pdf.p2103.png` - result is OK, Cyrillic characters are displayed correctly
- run `pdftocairo -png -l 1 -f 1 Chertezh_V16.pdf Chertezh_V16.pdf.p2103.png` - result is NOT OK, Cyrillic characters are displayed as tofu
Result PNGs are attached: [Chertezh_V15.pdf.p2103.png-1](/uploads/686b90873540e26d6dbe6ddf0b271d13/Chertezh_V15.pdf.p2103.png-1.png), [Chertezh_V16.pdf.p2103.png-1](/uploads/f2884029cb1e9d57b3cfe47edeb0ee7d/Chertezh_V16.pdf.p2103.png-1.png)
Upd: In my initial message I listed the files in wrong order, maybe that's why I've got "can't reproduce" replies.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1050potential crash in poppler when using "high" thread count2021-02-26T16:13:23Zsundermepotential crash in poppler when using "high" thread countThe issue was reported by a user of txs.
We have been trying to narrow down the issue.
The crash is an assert failure, apparently in FoFIType1::parse
texstudio_poppler_crash_bug: strtod_l.c:1497: ____strtod_l_internal: Zusicherung »numsi...The issue was reported by a user of txs.
We have been trying to narrow down the issue.
The crash is an assert failure, apparently in FoFIType1::parse
texstudio_poppler_crash_bug: strtod_l.c:1497: ____strtod_l_internal: Zusicherung »numsize == 1 && n < d« nicht erfüllt. (in English assert failed)
```
1 raise 0x7ffff706818b
2 abort 0x7ffff7047859
3 ?? 0x7ffff7047729
4 __assert_fail 0x7ffff7058f36
5 ?? 0x7ffff70740a2
6 FoFiType1::parse() 0x7ffff6de091e
7 FoFiType1::getName() 0x7ffff6de0cad
8 Gfx8BitFont::Gfx8BitFont(XRef *, const char *, Ref, GooString *, GfxFontType, Ref, Dict *) 0x7ffff6e4ed14
9 GfxFont::makeFont(XRef *, const char *, Ref, Dict *) 0x7ffff6e52eff
10 GfxFontDict::GfxFontDict(XRef *, Ref *, Dict *) 0x7ffff6e5317d
11 GfxResources::GfxResources(XRef *, Dict *, GfxResources *) 0x7ffff6e331b0
12 Gfx::pushResources(Dict *) 0x7ffff6e3edee
13 Gfx::checkTransparencyGroup(Dict *) 0x7ffff6e4197a
14 Gfx::doForm(Object *) 0x7ffff6e42901
15 Gfx::opXObject(Object *, int) 0x7ffff6e483c1
16 Gfx::go(bool) 0x7ffff6e3f57f
17 Gfx::display(Object *, bool) 0x7ffff6e3fa36
18 Page::displaySlice(OutputDev *, double, double, int, bool, bool, int, int, int, int, bool, bool ( *)(void *), void *, bool ( *)(Annot *, void *), void *, bool) 0x7ffff6e95f45
19 Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation, void ( *)(QImage const&, QVariant const&), bool ( *)(QVariant const&), bool ( *)(QVariant const&), QVariant const&) const 0x7ffff7f9d701
20 Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation, void ( *)(QImage const&, QVariant const&), bool ( *)(QVariant const&), QVariant const&) const 0x7ffff7f9d9b5
... <Mehr>
```
The current test case is on https://github.com/astoeckel/texstudio_poppler_crash_bug
Unfortunately it does not crash very reliable.
It happens most often when using the qtcreator debugger.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1049convert_doubles_array leaks memory?2021-03-01T11:37:58ZAlbert Astals Cidconvert_doubles_array leaks memory?I'm not totally versed in g-stuff, but as far as i can see doubles is g_new'ed and never gave to anyone else to hold the pointer.
code is in glib/poppler-structure-element.ccI'm not totally versed in g-stuff, but as far as i can see doubles is g_new'ed and never gave to anyone else to hold the pointer.
code is in glib/poppler-structure-element.cchttps://gitlab.freedesktop.org/poppler/poppler/-/issues/1048Failed to compile in Ubuntu 20.042021-02-21T01:37:42Zzy jFailed to compile in Ubuntu 20.04the commit number of my Poppler is:2706eca3ad3af99fa6551b9d6fcdc69eb0a0aa4e, when I tried to build it in Ubuntu 20.04, error was raised as follows:
```
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
/magma/...the commit number of my Poppler is:2706eca3ad3af99fa6551b9d6fcdc69eb0a0aa4e, when I tried to build it in Ubuntu 20.04, error was raised as follows:
```
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
/magma/targets/poppler/work/lib/pkgconfig/freetype2.pc
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- Check for working C compiler: /magma/fuzzers/aflplusplus_lto_asan/repo/afl-clang-lto
-- Check for working C compiler: /magma/fuzzers/aflplusplus_lto_asan/repo/afl-clang-lto -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /magma/fuzzers/aflplusplus_lto_asan/repo/afl-clang-lto++
-- Check for working CXX compiler: /magma/fuzzers/aflplusplus_lto_asan/repo/afl-clang-lto++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /usr/share/cmake-3.16/Modules/TestBigEndian.cmake:50 (message):
no suitable type found
```
This problem doesn't exist in Ubuntu 18.04, I met this only when I try to build in Ubuntu 20.04 with *clang-12*.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1047Top of clef cut short in Musescore PDFs2021-08-28T08:30:23ZJPAarhusTop of clef cut short in Musescore PDFsPoppler incorrectly renders the top of treble clefs in Musescore at the beginning of staves.
Rendered by poppler in Evince:
![evince](/uploads/3decdb54ad0ee173e7ceeb69b69a274d/evince.png)
Rendered by pdf.js in Firefox:
![firefox](/uploa...Poppler incorrectly renders the top of treble clefs in Musescore at the beginning of staves.
Rendered by poppler in Evince:
![evince](/uploads/3decdb54ad0ee173e7ceeb69b69a274d/evince.png)
Rendered by pdf.js in Firefox:
![firefox](/uploads/959e4f2edb7ef01c76fc5e157dd82fd7/firefox.png)
I wonder if it might be related to https://gitlab.freedesktop.org/poppler/poppler/-/issues/1035
This has been discussed extensively in the Musescore forums: https://musescore.org/en/node/300603
An Evince issue was opened, but never followed up on as far as I can see: https://gitlab.gnome.org/GNOME/evince/-/issues/1484 (Hence this new issue.)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1046Is pdftotext secure?2021-02-13T10:25:39ZVictor PortonIs pdftotext secure?There should be a noticeable answer (at https://poppler.freedesktop.org/) to the following question:
Is pdftotext secure? Is it OK to run pdftotext against possibly hacked PDF files without risking seizing the system by a hacker who cre...There should be a noticeable answer (at https://poppler.freedesktop.org/) to the following question:
Is pdftotext secure? Is it OK to run pdftotext against possibly hacked PDF files without risking seizing the system by a hacker who created the PDF file?https://gitlab.freedesktop.org/poppler/poppler/-/issues/1045qt6 anti-aliasing not working2021-03-12T21:43:07Zsundermeqt6 anti-aliasing not workingIn poppler-qt6 (21.01.00) with qt6.0.1 , anti-aliasing seems not to work. Is this known ?
![Bildschirmfoto_vom_2021-02-11_18-34-48](/uploads/6d69f9d438c1b7a60e1da2a9fab62e97/Bildschirmfoto_vom_2021-02-11_18-34-48.png)
![Bildschirmfoto_v...In poppler-qt6 (21.01.00) with qt6.0.1 , anti-aliasing seems not to work. Is this known ?
![Bildschirmfoto_vom_2021-02-11_18-34-48](/uploads/6d69f9d438c1b7a60e1da2a9fab62e97/Bildschirmfoto_vom_2021-02-11_18-34-48.png)
![Bildschirmfoto_vom_2021-02-11_18-37-19](/uploads/d3878b85284324b337c203d0fc53a430/Bildschirmfoto_vom_2021-02-11_18-37-19.png)