diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-10-13 22:14:46 +0200 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-10-14 16:56:14 +0200 |
commit | 56706ac0d5723cb549fec2602e798ab1bf6004cd (patch) | |
tree | 3da6bcbaaaf751afb5b66d27481f1ed77f49ef24 /doc/general.texi | |
parent | 69c8505f3bf54f316e9dc8bec1c71dfa1febec63 (diff) | |
download | ffmpeg-56706ac0d5723cb549fec2602e798ab1bf6004cd.tar.gz |
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 <mjbshaw@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'doc/general.texi')
0 files changed, 0 insertions, 0 deletions