Fix potential out-of-bounds read (coverity) (#844)
authorStefan Weil <sw@weilnetz.de>
Wed, 21 Sep 2016 11:17:09 +0000 (13:17 +0200)
committerMatthieu Darbois <mayeut@users.noreply.github.com>
Wed, 21 Sep 2016 11:17:09 +0000 (13:17 +0200)
commit045aa4d9f297b8d3d5f89e9983a54252d103a3da
treed0d0957fac1390e0d070b7037e5beaf7fdb45c82
parentda940424816e11d624362ce080bc026adffa26e8
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