diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-07-26 12:24:26 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-07-26 12:50:51 +0200 |
| commit | 80818c39f5bfbac37768fcee95b0ffeceaa77264 (patch) | |
| tree | 0f5a042507f7fa4867a63e68148decf178508b60 /src/lib/openjp2/pi.h | |
| parent | d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b (diff) | |
Avoid index out of bounds access to pi->include[] (#938)
Fix id:000098,sig:11,src:005411,op:havoc,rep:2 test case
Diffstat (limited to 'src/lib/openjp2/pi.h')
| -rw-r--r-- | src/lib/openjp2/pi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/openjp2/pi.h b/src/lib/openjp2/pi.h index a16995bd..cc7f9b00 100644 --- a/src/lib/openjp2/pi.h +++ b/src/lib/openjp2/pi.h @@ -75,6 +75,8 @@ typedef struct opj_pi_iterator { OPJ_BYTE tp_on; /** precise if the packet has been already used (useful for progression order change) */ OPJ_INT16 *include; + /** Number of elements in include array */ + OPJ_UINT32 include_size; /** layer step used to localize the packet in the include vector */ OPJ_UINT32 step_l; /** resolution step used to localize the packet in the include vector */ |
