Fix PNM file reading (#847)
authorMatthieu Darbois <mayeut@users.noreply.github.com>
Wed, 21 Sep 2016 22:30:34 +0000 (00:30 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Sep 2016 22:30:34 +0000 (00:30 +0200)
commitfac916f72a162483a4d6d804fd070fdf32f402ed
tree48edcfaecbacf278cb360ca8a896ab3a0ee38a35
parent8715ce2749d1e5a1e9c77646e9a2ddf0ec82bac9
Fix PNM file reading (#847)

Malformed PNM file could cause a crash in opj_compress.
Checks were added to prevent this.

Fixes #843
Updates #440
src/bin/jp2/convert.c
tests/nonregression/test_suite.ctest.in