1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavcodec
Andreas Cadhalpun 0887f1835d 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>
(cherry picked from commit 56706ac0d5723cb549fec2602e798ab1bf6004cd)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-10-17 17:24:40 +02:00
..
2016-04-26 12:27:39 +02:00
2016-09-05 01:01:35 +02:00
2016-01-29 19:58:34 -03:00
2016-09-28 17:11:52 +02:00
2016-10-09 20:13:48 +02:00
2016-08-13 13:08:57 +02:00
2016-01-30 17:44:13 +00:00
2016-01-30 17:44:13 +00:00
2016-02-02 18:06:13 -08:00
2016-01-30 17:44:13 +00:00
2016-01-31 17:09:38 +01:00
2016-01-31 17:09:38 +01:00
2016-01-31 17:09:38 +01:00
2016-09-05 01:01:35 +02:00
2016-02-07 09:26:15 -08:00
2016-01-28 10:31:41 +01:00
2016-01-28 10:31:41 +01:00
2016-01-30 13:38:16 +01:00
2016-01-31 15:44:11 -08:00
2016-09-05 01:01:35 +02:00
2016-03-26 21:52:47 +01:00
2016-02-01 01:36:44 +01:00
2016-01-28 17:24:53 +01:00
2016-08-13 13:08:57 +02:00
2016-10-09 20:13:48 +02:00
2016-01-28 00:08:40 +00:00
2016-01-30 13:31:44 +01:00
2016-01-28 19:49:48 -08:00