Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-12-03 | Fix calling a function on a null pointer | Albert Astals Cid | 1 | -13/+10 | |
It wasn't crashing but it's defenitely undefined behaviour. Now instead of calling copy that calls the constructor we call the constructor directly, which deals fine with a null "other" to be created from Also some const | |||||
2019-12-03 | Add some more const | Albert Astals Cid | 4 | -85/+87 | |
2019-12-03 | Enable modernize-loop-convert | Albert Astals Cid | 14 | -69/+50 | |
2019-12-02 | enable modernize-redundant-void-arg | Albert Astals Cid | 3 | -4/+4 | |
No copyright, it's a mechanical change | |||||
2019-12-02 | enable modernize-use-bool-literals | Albert Astals Cid | 12 | -33/+33 | |
No copyright, this is a mechanical change | |||||
2019-12-02 | Enable modernize-use-emplace | Albert Astals Cid | 1 | -1/+1 | |
Not claiming copyright since it's a mechanical change | |||||
2019-12-02 | Enable modernize-use-equals-delete | Albert Astals Cid | 3 | -8/+10 | |
Not claiming copyright since the change is mechanical | |||||
2019-12-02 | Enable modernize-use-override | Albert Astals Cid | 25 | -118/+118 | |
not claiming copyright for this since it's a mechanical change | |||||
2019-12-02 | Enable modernize-make-shared and modernize-make-unique | Albert Astals Cid | 2 | -2/+2 | |
2019-12-01 | Update (C) of last commit | Albert Astals Cid | 2 | -0/+2 | |
2019-12-01 | JBIG2Stream: fix leak in reset() if called several times | Even Rouault | 2 | -5/+13 | |
JBIG2Stream::reset() currently allocates new values for the segments and globalSegments member variable. This causes a memory leak if the method is called several times, which can be triggered by the GDAL library that uses Poppler. So add a freeSegments() method where we move the related cleanup of close(), and call that method from reset() and close(). | |||||
2019-12-01 | Move the clear for loops into a function | Albert Astals Cid | 2 | -22/+15 | |
And also call memset because it's clearer from "this is what i want" point of view, compiler optimizers are smart enough to convert back to a loop if needed | |||||
2019-11-30 | Rework Hints::readTables a bit | Albert Astals Cid | 1 | -9/+16 | |
fail and return immediately if the length is 0 also set ok to false in a few other "failed to read table" cases | |||||
2019-11-30 | Improve pdftops -optimizecolorspace by implementing the CMYK to K conversion ↵ | William Bader | 1 | -49/+132 | |
in more places. This fixes the conversion of the PDF in poppler/poppler#833 | |||||
2019-11-30 | Links: Remove two unused functions | Albert Astals Cid | 2 | -24/+0 | |
Note: If you're one of the people using the internal API against our wishes, you can still roll out these functions yourself | |||||
2019-11-30 | Turn Links::links into a std::vector instead of ** | Albert Astals Cid | 2 | -29/+9 | |
2019-11-29 | Enable modernize-deprecated-headers | Albert Astals Cid | 68 | -174/+174 | |
2019-11-29 | Enable readability-string-compare | Albert Astals Cid | 2 | -15/+15 | |
2019-11-29 | Enable readability-inconsistent-declaration-parameter-name | Albert Astals Cid | 21 | -78/+79 | |
2019-11-28 | Move enableFreeType out of GlobalParams | Albert Astals Cid | 4 | -15/+4 | |
It's now moved to pdftoppm+SplashOutputDev that were the only users | |||||
2019-11-28 | Some more const | Albert Astals Cid | 5 | -32/+32 | |
2019-11-28 | HtmlPage::dumpComplexHeaders: Fix memory leak | Albert Astals Cid | 2 | -3/+3 | |
We can't do const std::string htmlEncoding = HtmlOutputDev::mapEncodingToHtml(globalParams->getTextEncodingName())->toStr(); since HtmlOutputDev::mapEncodingToHtml returned a GooString that needed deletion. It's all std::strings now | |||||
2019-11-28 | Make GfxFont constructor protected | Albert Astals Cid | 1 | -3/+1 | |
You're not supposed to create a GfxFont by itself | |||||
2019-11-27 | some more const | Albert Astals Cid | 9 | -37/+52 | |
2019-11-27 | FontInfo: Add some const | Albert Astals Cid | 2 | -13/+13 | |
2019-11-26 | Linearization: add const to functions | Albert Astals Cid | 2 | -21/+22 | |
2019-11-26 | Update (C) | Albert Astals Cid | 1 | -0/+1 | |
2019-11-26 | Do not recognized as linearized documents that lack a valid Linearized dict | Even Rouault | 1 | -0/+2 | |
Documents such as the one at https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19098 (under embargo at the time of writing) have the structure of the Linearized dict but lack valid integer object numbers. Poppler still manages to make some sense of that, but not recognizing such corrupted files as linearized would help the consumer (GDAL) that does admitedly nasty things around Poppler... | |||||
2019-11-24 | Add const to TextOutputDev & friends | Albert Astals Cid | 5 | -169/+169 | |
2019-11-24 | Remove useless virtual markers on override functions | Albert Astals Cid | 2 | -16/+16 | |
2019-11-24 | Make Stream::getKind const | Albert Astals Cid | 11 | -36/+51 | |
2019-11-23 | Add some const to GfxState & friends | Albert Astals Cid | 10 | -114/+107 | |
2019-11-22 | Remove Object::streamIs and Object::isStream(const char *) | Albert Astals Cid | 1 | -8/+0 | |
2019-11-22 | Remove Object::streamGetLine | Albert Astals Cid | 1 | -4/+0 | |
2019-11-22 | Remove Object::streamLookChar | Albert Astals Cid | 1 | -4/+0 | |
2019-11-22 | Remove Object::streamSetPos | Albert Astals Cid | 2 | -5/+2 | |
2019-11-22 | Remove Object::streamGetPos | Albert Astals Cid | 3 | -9/+5 | |
2019-11-09 | Make globalParams a std::unique_ptr | Oliver Sander | 2 | -2/+3 | |
2019-11-08 | Fix uninitialized memory use in JBIG2Stream::readTextRegionSeg | Albert Astals Cid | 1 | -1/+4 | |
When the unlikely condition triggers | |||||
2019-10-30 | Update (C) of previous commits | Albert Astals Cid | 1 | -1/+1 | |
2019-10-30 | Introduce Object::getNumWithDefaultValue | Albert Astals Cid | 5 | -216/+111 | |
Is like getNum but instead of asserting if Object is not a num it returns the given default value I find it much easier to read rect->x1 = obj1.arrayGet(0).getNumWithDefaultValue(0); than (obj2 = obj1.arrayGet(0), obj2.isNum() ? rect->x1 = obj2.getNum() : rect->x1 = 0); On top of it has the benefit of being slightly faster | |||||
2019-10-27 | unicodeNormalizeNFKC: Make in const | Adriaan de Groot | 2 | -4/+6 | |
2019-10-24 | Import md5 code from xpdf 4.02 | Albert Astals Cid | 1 | -140/+179 | |
Fixes issue 832 | |||||
2019-10-23 | Make FontInfo::scan return a std::vector object | Oliver Sander | 2 | -5/+5 | |
... rather than a pointer to a std::vector. Given that a std::vector is little more than a pointer and some size information, there is no need to create std::vector objects on the heap. Returning them by value is just as fast (the vector content is not copied), and makes the code more readable, too. | |||||
2019-10-23 | Use a std::unique_ptr for XRef | Oliver Sander | 1 | -5/+4 | |
This makes memory handling a tiny bit more robust. | |||||
2019-10-20 | Update (C) | Albert Astals Cid | 2 | -0/+2 | |
2019-10-20 | CharCodeToUnicode::mapToUnicode: Make clear the data is const | Albert Astals Cid | 21 | -40/+41 | |
2019-10-18 | Add const in CharCodeToUnicode | corentin | 2 | -3/+3 | |
Function updated: getLength mapToUnicode | |||||
2019-10-09 | Fix assert on malformed documents | Albert Astals Cid | 1 | -1/+6 | |
2019-10-07 | Update (C) of previous commit | Albert Astals Cid | 1 | -1/+1 | |