jbig2dec - refine test for "Denial of Service" images
Add sanity check on image sizes.
Bug 697531 : Tidy up unused code.
Bug 697531 : Fix decoder error on JBIG2 compressed image.
Fix warnings: remove unsigned < 0 tests that are always false.
Squash signed/unsigned warnings in MSVC jbig2 build.
Bug 696786 : Prevent checking too early for buffer overrun
Reindent jbig2dec source to follow gs coding style.
Fix warning: for loop has empty body (semicolon at end of line).
Close file on error before exit
Fix jbig2dec libpng API versions support
Update version number and dates for jbig2dec release
Move Memento include back into jbig2_priv.h
Bug 694179: Fix memory leak in jbig2dec
jbig2dec: release huffman table memory properly
Bug 696052: Check that cloned image exists before proceeding further.
Fixes for Windows build with VS 2015.
Commit of build_consolidation branch
Bug 695890: Update jbig2dec for modern libpng
Tidy jbig2dec build configuration:
Update jbig2dec version and CHANGES file
Fix and improve bit-rotted jbig2dec/libpng build on Windows
replace jbig2_arith_get_offset with jbig2_arith_has_reached_marker
Bug 694892: fix typo in 5eaf740b2c02523ae2ae6454e546cb6700d4e3f3
Update jbig2dec standalone build for Windows.
Bug 694949: prevent denial of service with arithmetic decoding
jbig2dec: tweak overflow check in jbig2_(re)alloc
Bug 694892: buffer overrun in jbig2_comment_ascii
follow-up to 8e2f00f15c988d75a4182ecdcdc1a82b4686ef92
Bug 694845: Shailesh Mistrys patch for regression in jbig2dec
Revert "Bug 694124: Shailesh Mistry's patch for valgrind problems."
Bug 694124: Shailesh Mistry's patch for valgrind problems.
Bug 694362: More tweaking in jbig2dec.
Pull changes back from mupdf's version of jbig2dec to gs's.
Bug 694249: Fix JBig2Dec using broken image regions.
bug 694281: fix memory leaks and compilation warnings
Bug 694121: prevent heap overflow
Bug 694111: prevent heap overflow
Bug 694125: prevent heap underflow
JBIG2Dec: MUPDF fuzzing SEGV fixes
Bug 694021: Patch for seg fault related issues
Bug 691784 - jbig2dec WIN32 DLL with configure
Bug 691555: two jbig2dec patches for libpng14 Cygwin/MinGW
Bug 693798: Fix buffer overrun.
Change jbig2dec license to AGPL to match Ghostscript.
Bug 693507: check for out-of-bounds access
Bug 693284: Prevent read access violation. Check whether there's enough data.
Bug 693284: Detect missing glyphs and fail.
Bug 693284: Conditional inclusion of memento header.
Bug 693284: Break an infinite loop.
Bug 693284: Fix 32 vs 64-bit typ[e mismatch.
Bug 693284: Don't shift 32-bit value by 32.
Bug 691246: Handle inverted symbol region.
Bug 693513: Detect and reject negative parameters.
Bug 693285: Apply update of original patch from zeniko. We now check that the symbol dictionary being imported is not empty. Also prevent seg faults resulting from the threadsafe update.
Remove dependence on jbig2dec auto-generated files
Update the libpng check to a non-deprecated API call.
Bug 693298; Memento tweak for memset compile problem.
Revert "Move memento include from jbig2.h to jbig2_priv.h"
Move memento include from jbig2.h to jbig2_priv.h
Bug 693256: Free GR_/GB_stats......
Remove files for unsupported build tools.
Enable Memento to be used with jbig2dec
Bug 693050 : Fix compiler warnings
Bug 693050 : Fix valgrind error in 0CF9 folder
Bug 693050 : Fix error handling in 0717 folder
Bug 693050 : Fix error handling in dcbd folder
Bug 693050 : Fix error handling in 9557 folder
Bug 693050 : Fix memory leak in 4faa folder
Bug 693050 : Fix error handling in 2908 folder
Bug 693050 : Fix memory leak in 146f folder
Bug 693050 : Fix minor typos and memory leak in 040d folder
Bug 690723 : Prevent over writing unallocated memory when parsing an image
Bug 693050 : Fixes CERT reported issues labelled DestAv
Bug 693050 : Fixes CERT reported issues labelled SourceAvNearNull
Bug 693050 : Fixes CERT reported issue labelled HeapError
Bug 693025 : Correct memory leaks reported by Zeniko
Bug 693025: Correct typos reported by Zeniko
Bug 693050 : Fixes CERT reported issue labelled DestAvNearNull
Bug 693050 : Fixes CERT reported issue labelled BranchAvNearNull
Bug 693050 : Fixes CERT reported issue labelled BlockMoveAv
Bug 693050 : Fixes CERT reported issue labelled SegFaultOnPc
Bug 693025: Updated patch from Zeniko to fix various crashes and leaks
Bug 690974: This patch from Gorac implements the generic refinement region decoding procedure for when TPGRON is TRUE.
Bug 690870: This patch prevents the image compositing occurring if the src is outside of the clip region.
Bug 691254: This patch prevents the seg fault in Jbig2_042_14.pdf.
Tweak jbig2dec to cope better with NULLs.
Bug 691230, basic jbig2 halftone image support.
Bug 691267: Check all realloc error paths.
Bug 691267: jbig2dec needs to check malloc() return values
Fix 691958: check for an image before marking a page complete. Also update return code to handle errors correctly.
Tweak jbig2dec os_types.h for android mupdf build.
Fixes bug #689870 - add proper big endian number accessors.
Fixes 690889, potential null dereference.
Fix bug # 691532. Do not attempt to clone an image that does not exist, each completed page should have an associated image. We'd like to handle this corrupt file with a better fix, for example the absence of an end page segement is clearly a problem with respect to the specification, but Adobe and Artifex have chosen to support other "off spec" streams so more subtle and less obvious error checking is needed. Thanks to Tim Waugh for analysis on this problem.
On Tru64 the integer types are in inttypes.h and not in stdint.h as in VMS