]> granicus.if.org Git - openjpeg/commit
Fix potential out-of-bounds read (coverity) (#844)
authorStefan Weil <sw@weilnetz.de>
Wed, 21 Sep 2016 11:17:09 +0000 (13:17 +0200)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 21 Sep 2016 12:11:35 +0000 (14:11 +0200)
commit39f9934a70f5f01ddb7adc70801e981efb146f05
tree691637b453aff819136de20521589e4c9eb7043a
parent04a00aab654cee283879d6f93d7d868b9645a0f0
Fix potential out-of-bounds read (coverity)  (#844)

* query_parser: Fix potential out-of-bounds read (coverity)

CID 1190207 (#1 of 1): Out-of-bounds read (OVERRUN)

Variable i must be checked before testing query_param.box_type.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
* jpip_parser: Fix potential out-of-bounds read (coverity)

CID 1190206 (#1 of 1): Out-of-bounds read (OVERRUN)

Variable i must be checked before testing query_param.box_type.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
src/lib/openjpip/jpip_parser.c
src/lib/openjpip/query_parser.c