Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-05 | Simplify fz_new_type3_font | Robin Watts | |
Call fz_calloc rather than fz_malloc_array and then manually clearing. | |||
2016-10-05 | Uncouple font shaper data from harfbuzz. | Robin Watts | |
The fz_font structure now doesn't know anything about harfbuzz at all, it merely offers an abstract 'fz_shaper_data_t' entry. | |||
2016-10-05 | Move fz_font definition to be private. | Robin Watts | |
Move the definition of fz_font to be in a private header file rather than in the public API. Add accessors for specific parts of the structure and use them as appropriate. The font flags, and the harfbuzz records remain public. This means that only 3 files now need access to the font implementation (font.c, pdf-font.c and pdf-type3.c). This may be able to be improved further in future. | |||
2016-09-27 | Fix typo in fz_valgrind_pixmap | Robin Watts | |
Function exists purely for doing valgrind testing of pixmap definedness. | |||
2016-09-28 | tiff: Do not clobber input buffer if fill order is reversed. | Sebastian Rasmussen | |
2016-09-28 | tiff: Do error handling for decoders in a single place. | Sebastian Rasmussen | |
2016-09-28 | tiff: Validate that tag/tile/strip offsets are within bounds. | Sebastian Rasmussen | |
2016-09-28 | Bug 697166: tiff: Avoid freeing offset/bytecount arrays twice. | Sebastian Rasmussen | |
2016-09-28 | Bug 697165: tiff: Do not allow duplicate array tags. | Sebastian Rasmussen | |
Previously this caused a memory leak. | |||
2016-09-28 | Bug 697155: tiff: Drop stream if compression is unknown. | Sebastian Rasmussen | |
m5-299787ea764c0a88bc481364eded5556.tif | |||
2016-09-28 | Bug 697157: tiff: Rational tag denominators may not be zero. | Sebastian Rasmussen | |
2016-09-28 | Bug 697156: tiff: Free tile arrays after use. | Sebastian Rasmussen | |
2016-09-28 | Bug 697154: tiff: Detect error when decoding strip/tile data. | Sebastian Rasmussen | |
2016-09-27 | Bug 697153: tiff: Image dimensions must always be bigger than 0. | Sebastian Rasmussen | |
2016-09-27 | Bug 697152: jpeg: Use correct macro to get client data. | Sebastian Rasmussen | |
In commit 6a8abce9603f69b57e407f0df4044be919f507d7 an agnostic memory handler was introduced for libjpeg. While this commit changed error_exit_dct() it forgot to make a similar change in error_exit(). | |||
2016-09-27 | Bug 697163: gif: Fix integer overflow in image dimensions. | Sebastian Rasmussen | |
2016-09-27 | Bug 697162: gif: Color index must be inside color table. | Sebastian Rasmussen | |
2016-09-27 | Bug 697161: gif: Frames may not be bigger than the image. | Sebastian Rasmussen | |
2016-09-27 | Bug 697160: gif: Transparency index must be inside color table. | Sebastian Rasmussen | |
2016-09-26 | Update OpenJPEG to the latest (git) version. | Robin Watts | |
Part of the change in this code is to require opj_malloc and co. Sadly, opj_malloc and co do not take a context field, so a we need to wrap calls to openjpeg with a lock. I am reusing the freetype lock here for simplicity. | |||
2016-09-27 | tiff: Fix typo in thunder decoder. | Sebastian Rasmussen | |
2016-09-26 | tiff: Support tiled images. | Sebastian Rasmussen | |
2016-09-26 | tiff: Estimate uncompressed strip sizes if missing. | Sebastian Rasmussen | |
2016-09-26 | tiff: Reorganize code, preparing for tiled image support. | Sebastian Rasmussen | |
2016-09-26 | tiff: Add support for thunder decoding. | Sebastian Rasmussen | |
2016-09-26 | tiff: Support flate compression under differnent name. | Sebastian Rasmussen | |
2016-09-26 | tiff: Support images with 2 and 16 bits per palette color. | Sebastian Rasmussen | |
2016-09-26 | tiff: Support images using Lab colorspace. | Sebastian Rasmussen | |
2016-09-26 | gif: If decompression fails, don't rely on uninitialized buffer data. | Sebastian Rasmussen | |
2016-09-26 | gif: Use frame size when parsing a frame, not size of entire image. | Sebastian Rasmussen | |
2016-09-26 | pnm: Interpret b/w image colors correctly. | Sebastian Rasmussen | |
2016-09-26 | Fix memory leak when opening html/loading raw stream. | Sebastian Rasmussen | |
2016-09-23 | GProof: Fix typos in gs invocation | Robin Watts | |
2016-09-23 | Fix leak in error case of pdf_add_stream. | Robin Watts | |
2016-09-23 | Clean up annotation enum names. | Tor Andersson | |
Put them in the PDF name space and separate words with underscores. Remove redundant namespace prefixes in java constants. Device.FLAG_MASK rather than Device.FZ_DEVFLAG_MASK. Use namespace for PDF annotation flag enum. | |||
2016-09-23 | Check for buffer overflow in strtod ascii division. | Tor Andersson | |
2016-09-23 | Fix warning: set but unused variable. | Tor Andersson | |
2016-09-22 | GPROOF: Modify gs invocation. | Michael Vrhel | |
If we get the print profile given as '<EMBEDDED>' then use the print profile (Output Intent) embedded in the file. If not, we continue to use the defaults if given the empty string, or the given file otherwise. | |||
2016-09-22 | tools: Prefer fz_atof() to atof(). | Sebastian Rasmussen | |
2016-09-22 | GProof: When invoking gs, redirect gs stdio to local stderr. | Robin Watts | |
For android this means it will go to our logging. This moves the code out of gs. | |||
2016-09-22 | Bug 697015: Avoid object references vanishing during repair. | Robin Watts | |
A PDF repair can be triggered 'just in time', when we encounter a problem in the file. The idea is that this can happen without the enclosing code being aware of it. Thus the enclosing code may be holding 'borrowed' references (such as those returned by pdf_dict_get()) at the time when the repair is triggered. We are therefore at pains to ensure that the repair does not replace any objects that exist already, so that the calling code will not have these references unexpectedly invalidated. The sole exception to this is when we replace the 'Length' fields in stream dictionaries with the actual lengths. Bug 697015 shows exactly this situation causing a reference to become invalid. The solution implemented here is to add an 'orphan list' to the document, where we put these (hopefully few, small) objects. These orphans are kept around until the document is closed. | |||
2016-09-22 | Bug 697018: Avoid recursing infinitely on dicts in mutool info. | Sebastian Rasmussen | |
2016-09-21 | fix the quotes fix | fred ross-perry | |
2016-09-21 | Bug 697106: Mark 64bit constants as such. | Robin Watts | |
Avoids gcc giving spurious warnings. | |||
2016-09-21 | Gproof GS invocation: Only quote profile names if required. | Robin Watts | |
We need to quote profile names if we use system, but not if we use the GS_API. Update the code to cope. | |||
2016-09-21 | Update GPRF invocation of GS | Robin Watts | |
Have both the GSAPI and non GSAPI invocations be identical. Remove the -rxx bit because it is not required when using -gWxH and -dFitPage. Add some simple debug code. | |||
2016-09-20 | Fix Memento crash | Robin Watts | |
When reallocing set the rawsize before attempting to write the post guard block. | |||
2016-09-20 | Sync Memento with gs. | Robin Watts | |
Including: Bug 697134: Tweak MEMENTO_GS_HACKS inclusion. Rather than rolling our own memset prototype in this case, use the one that gs provides. And, bug 697133: Fix typo in Memento. Causing a significant slowdown. Thanks to George Burgess IV for spotting this. | |||
2016-09-20 | Avoid signed/unsigned warnings. | Robin Watts | |
2016-09-20 | SVG: If no width/height given, then guess from viewBox. | Robin Watts | |