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-01-31 17:09:38 +01:00
2016-01-31 17:09:38 +01:00
2016-04-26 12:27:39 +02:00
2016-02-14 20:04:19 -03:00
2016-03-28 16:57:41 +01:00
2016-09-05 01:01:35 +02:00
2016-01-31 15:44:11 -08:00
2016-01-31 15:44:11 -08:00
2016-01-31 15:44:11 -08:00
2016-01-31 15:44:11 -08:00
2016-04-25 04:27:29 +02:00
2016-01-31 13:29:04 +00:00
2016-02-10 17:15:59 +00:00
2016-08-13 13:08:57 +02:00
2016-01-29 19:58:34 -03:00
2016-09-28 17:11:52 +02:00
2016-04-21 14:12:45 +02:00
2016-10-09 20:13:48 +02:00
2016-02-03 16:54:20 +00:00
2016-09-28 17:11:52 +02:00
2016-08-13 13:08:57 +02:00
2016-01-31 15:44:11 -08:00
2016-09-28 17:11:52 +02:00
2016-09-28 17:11:52 +02:00
2016-09-05 01:01:35 +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-05-02 22:48:52 -03: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-02-04 12:16:19 +01: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-01-31 17:09:38 +01: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-01-31 17:09:38 +01:00
2016-01-31 17:09:38 +01:00
2016-01-31 17:09:38 +01:00
2016-02-06 01:36:55 -03:00
2016-02-06 01:36:55 -03:00
2016-01-31 17:09:38 +01:00
2016-02-07 09:09:13 -08:00
2016-02-07 09:09:13 -08:00
2016-02-07 09:09:13 -08:00
2016-02-09 14:59:36 +01:00
2016-02-03 17:19:30 +00:00
2016-09-05 01:01:35 +02:00
2016-02-05 19:29:43 -08:00
2016-02-05 19:29:43 -08:00
2016-02-03 17:19:33 +00:00
2016-02-07 09:26:15 -08:00
2016-02-14 19:17:36 +01:00
2016-02-14 19:17:36 +01:00
2016-02-14 19:17:36 +01:00
2016-02-14 19:17:36 +01:00
2016-01-28 10:31:41 +01:00
2016-01-29 13:57:15 -03:00
2016-01-28 10:31:41 +01:00
2016-01-31 15:44:11 -08:00
2016-01-31 15:44:11 -08:00
2016-01-30 13:38:16 +01:00
2016-01-28 16:57:04 +00:00
2016-08-13 13:08:57 +02:00
2016-08-13 13:08:57 +02:00
2016-01-31 20:05:41 +01:00
2016-01-28 17:19:06 +00:00
2016-01-28 19:49:48 -08:00
2016-01-31 12:59:28 +01:00
2016-09-28 17:11:52 +02:00
2016-01-31 15:44:11 -08:00
2016-01-31 15:44:11 -08:00
2016-02-14 21:09:07 +01:00
2016-03-26 21:52:47 +01:00
2016-03-29 03:25:15 +02:00
2016-08-13 15:05:44 +02:00
2016-03-26 21:52:47 +01:00
2016-06-05 02:40:30 +02:00
2016-02-01 10:34:23 +01:00
2016-06-05 02:40:30 +02:00
2016-06-05 02:40:30 +02:00
2016-06-05 02:40:30 +02:00
2016-02-03 16:49:19 +00:00
2016-09-05 01:01:35 +02:00
2016-03-26 21:52:47 +01:00
2016-08-13 13:08:57 +02:00
2016-04-01 17:35:50 +02:00
2016-02-03 16:49:19 +00:00
2016-01-31 13:19:50 +00:00
2016-10-17 17:22:01 +02:00
2016-10-17 17:24:40 +02:00
2016-02-03 16:49:19 +00:00
2016-03-26 21:52:48 +01:00
2016-02-04 02:17:57 +01:00
2016-02-07 09:12:46 -08:00
2016-03-17 12:57:00 -03:00
2016-08-13 13:08:57 +02:00
2016-02-01 01:36:44 +01:00
2016-01-28 16:42:32 +00:00
2016-01-28 16:44:59 +00:00
2016-02-03 16:49:19 +00:00
2016-01-31 15:44:11 -08:00
2016-02-10 17:15:59 +00:00
2016-09-03 15:35:12 +02:00
2016-03-26 21:52:47 +01:00
2016-02-03 16:49:19 +00:00
2016-02-03 22:14:27 +00:00
2016-01-28 17:24:53 +01:00
2016-01-31 15:44:11 -08:00
2016-09-28 17:11:52 +02:00
2016-08-13 13:08:57 +02:00
2016-10-09 20:13:48 +02:00
2016-01-31 12:28:04 +00:00
2016-02-03 16:54:20 +00:00
2016-08-13 13:08:57 +02:00
2016-02-03 16:54:20 +00:00
2016-01-31 15:44:11 -08:00
2016-02-10 17:15:59 +00:00
2016-04-26 02:47:09 +02:00
2016-04-09 01:12:32 +02:00
2016-02-03 16:49:19 +00:00
2016-01-29 19:58:44 -03:00
2016-01-28 00:08:40 +00:00
2016-08-13 13:08:57 +02:00
2016-09-05 01:01:35 +02:00
2016-03-26 21:52:47 +01:00
2016-05-10 19:13:54 -03:00
2016-02-03 16:49:19 +00:00
2016-02-03 16:49:19 +00:00
2016-01-31 17:09:38 +01:00
2016-01-31 17:09:38 +01:00
2016-04-21 14:13:38 +02:00
2016-01-31 15:44:11 -08:00
2016-04-26 19:49:09 +02:00
2016-08-13 13:08:57 +02:00
2016-02-03 16:49:19 +00:00
2016-02-03 16:49:19 +00:00
2016-02-03 16:49:19 +00:00
2016-01-30 13:31:44 +01:00
2016-02-10 17:15:59 +00:00
2016-02-12 02:06:05 -03:00
2016-03-28 17:02:05 +01:00
2016-02-10 17:15:59 +00:00
2016-01-31 15:44:11 -08:00
2016-01-31 15:44:11 -08:00
2016-08-13 13:08:57 +02:00
2016-02-13 19:49:34 +01:00
2016-09-05 01:01:35 +02:00
2016-01-28 19:49:48 -08:00