- 06 Oct, 2019 1 commit
-
-
Even Rouault authored
337585e3 unconditionnaly overrides any potential user-defined CMAKE_C[XX]_FLAGS. This for example breaks the GDAL oss-fuzz builds which build Poppler from source (see https://github.com/OSGeo/gdal/blob/master/gdal/fuzzers/build.sh#L54) So do the same as the GCC path where we save input CMAKE_C[XX]_FLAGS and reinject them in custom CMAKE_C{XX}_FLAGS_{build_configuration} The values are identical to GCC, execpt for the _DEBUG configuration where we remove '-O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline' since clang does not support -fno-reorder-blocks and -fno-schedule-insns, so it is likely better to disable any optimization for proper debugging.
-
- 03 Oct, 2019 2 commits
-
-
Albert Astals Cid authored
This code needs a bit of refactoring to share most of it between gcc and clang
-
Albert Astals Cid authored
-
- 02 Oct, 2019 2 commits
-
-
Albert Astals Cid authored
And fixes for it in the code
-
Albert Astals Cid authored
-
- 01 Oct, 2019 2 commits
-
-
Christian Persch authored
This allows creating a PopplerDocument from data stored in a GBytes. This is better than poppler_document_new_from_data() since the document will keep a reference to the data, instead of having to make sure manually that the data stays around as long as the document exists. Also poppler_document_new_from_data() is buggy in that it uses int for the data size instead of gsize. poppler/poppler#771
-
Albert Astals Cid authored
for (const TypeMapEntry &entry : typeMap) { is much easier to read than for (unsigned i = 0; i < sizeof(typeMap) / sizeof(typeMap[0]); i++) {
-
- 30 Sep, 2019 1 commit
-
-
Albert Astals Cid authored
Only with the performance- checks enabled for now
-
- 29 Sep, 2019 5 commits
-
-
Albert Astals Cid authored
This way we only const_cast in free()
-
Albert Astals Cid authored
The problem is that some of the times the pointers hold values to const tables and some others hold values to dynamic memory. Instead of const_casting the const tables when needed and holding a non const pointer, we hold a const pointer and only const cast on free if needed
-
Albert Astals Cid authored
-
Volker Krause authored
This moves 14.4kB from .data to .rodata, and another 11.6kB from .data to .data.rel.ro.
-
Albert Astals Cid authored
-
- 27 Sep, 2019 3 commits
-
-
Albert Astals Cid authored
-
Albert Astals Cid authored
Suggested by clang-tidy readability-non-const-parameter check
-
Albert Astals Cid authored
-
- 23 Sep, 2019 1 commit
-
-
Albert Astals Cid authored
By initializing width and charCount earlier in Annot::layoutText, there's two early return that need the values to be initialized and we were initializing them later in the function anyway so just move the block to the beginning of the function
-
- 22 Sep, 2019 2 commits
-
-
Albert Astals Cid authored
-
Albert Astals Cid authored
-
- 20 Sep, 2019 1 commit
-
-
Marek Kasik authored
Check scaledWidth and scaledHeight for 0 at RescaleDrawImage::getSourceImage() as is done on other places. Set the dimension to 1 if it is 0. Fixes issue #737
-
- 02 Sep, 2019 1 commit
-
-
Albert Astals Cid authored
-
- 01 Sep, 2019 1 commit
-
-
Albert Astals Cid authored
-
- 24 Aug, 2019 3 commits
-
-
Albert Astals Cid authored
I was tired of having two constructors for GfxDeviceNColorSpace, both taking GooString ** but one copying those strings and the other keeping them for itself. Moved to std::vector<std::string> without much fallout in the rest of the code
-
Albert Astals Cid authored
Fixes crash with bug-poppler85281.pdf
-
Albert Astals Cid authored
Doesn't seem to cause any speed regression and one ifdef less is code easier to maintain
-
- 23 Aug, 2019 1 commit
-
-
Albert Astals Cid authored
Otherwise if we construct a DecryptStream and next we call lookupChar it would use un-initialized memory
-
- 22 Aug, 2019 1 commit
-
-
Albert Astals Cid authored
-
- 21 Aug, 2019 13 commits
-
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
-
Albert Astals Cid authored
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
Also, added Since: strings and completed missing API doc comments.
-
Evgeny Stambulchik authored
-
Evgeny Stambulchik authored
-
Albert Astals Cid authored
-
Marek Kasik authored
Clarify documentation about returned values of recently added viewer preferences. poppler/poppler#290
-