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)
committerGitHub <noreply@github.com>
Wed, 7 Sep 2016 22:24:15 +0000 (00:24 +0200)
commite078172b1c3f98d2219c37076b238fb759c751ea
treeac6d5c8489af7fc85b8c9b5d8854ab5c69d2cc47
parentacfb307df43a811cc56c035d0dc651dac8c9e7de
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