summaryrefslogtreecommitdiffstats
path: root/doc/examples/demuxing_decoding.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2016-10-13 22:14:46 +0200
committerAndreas Cadhalpun <[email protected]>2016-10-17 17:24:40 +0200
commit0887f1835d69d65fef45eb9aa0183bb06954f52a (patch)
treeb9742975ee8a664756fca934a3b9970d5a2bc495 /doc/examples/demuxing_decoding.c
parentde42af2beef7ecc3bf44d746c316de437b8be274 (diff)
libopenjpegenc: fix out-of-bounds reads when filling the edges
The calculation of width/height should round up, not round down to prevent setting width or height to 0. Also image->comps[compno].w is unsigned (at least in openjpeg2), so the calculation could silently wrap around without the explicit cast to int. Reviewed-by: Michael Bradshaw <[email protected]> Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]> (cherry picked from commit 56706ac0d5723cb549fec2602e798ab1bf6004cd) Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'doc/examples/demuxing_decoding.c')
0 files changed, 0 insertions, 0 deletions