Add sanity check for tile coordinates (#823)
authorMatthieu Darbois <mayeut@users.noreply.github.com>
Wed, 7 Sep 2016 22:24:15 +0000 (00:24 +0200)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 13 Sep 2016 09:00:08 +0000 (11:00 +0200)
commitb75acb3bb9e0fdf0f167f0a3331470c0a6e5ff3e
tree2a20c4f21793f5b420330b5060eb6830eca947f5
parent2978541ea26e8eb0e372492d733d7b930ee0e440
Add sanity check for tile coordinates (#823)

Coordinates are casted from OPJ_UINT32 to OPJ_INT32
Add sanity check for negative values and upper bound becoming lower
than lower bound.
See also
https://pdfium.googlesource.com/pdfium/+/b6befb2ed2485a3805cddea86dc7574510178ea9
src/lib/openjp2/tcd.c
tests/compare_dump_files.c
tests/nonregression/test_suite.ctest.in