Andreas Cadhalpun
c0cd8747ef
apng: use correct size for output buffer
...
The buffer needs s->bpp bytes, at maximum currently 10.
Assert that s->bpp is not larger.
This fixes a stack buffer overflow.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 3e8e1a660ea182111057d56ec1cfad2c62250f4c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-07 14:11:12 +01:00
..
2015-10-16 14:47:56 +02:00
2015-10-25 01:05:31 +02:00
2015-08-29 06:44:20 +01:00
2015-08-29 06:47:31 +01:00
2015-08-29 06:07:12 +01:00
2015-09-05 08:32:09 +01:00
2015-09-05 08:32:09 +01:00
2015-09-05 08:32:09 +01:00
2015-08-29 06:34:08 +01:00
2015-09-05 09:08:30 +01:00
2015-09-05 09:08:30 +01:00
2015-09-02 06:26:45 +01:00
2015-09-01 06:44:07 +01:00
2015-09-01 06:30:08 +01:00
2015-08-29 06:07:12 +01:00
2015-09-04 12:03:37 +02:00
2015-08-27 17:05:44 +02:00
2015-09-01 14:35:32 +02:00
2015-09-01 14:35:32 +02:00
2015-11-07 01:10:16 +01:00
2015-10-08 13:15:42 +02:00
2015-10-08 13:15:42 +02:00
2015-09-04 12:03:44 +02:00
2015-11-05 21:50:14 +01:00
2015-10-30 17:55:31 +01:00
2015-10-08 13:15:42 +02:00
2015-11-05 01:49:09 +01:00
2015-10-08 13:15:42 +02:00
2015-09-03 09:47:44 +00:00
2015-09-04 12:14:14 +02:00
2015-10-12 21:46:54 +02:00
2015-09-03 22:17:24 +02:00
2015-10-12 02:23:36 +02:00
2015-09-08 23:02:00 +02:00
2015-10-31 22:57:52 +01:00
2015-09-05 00:37:53 +02:00
2015-09-04 03:09:03 +02:00
2015-11-05 15:17:56 +01:00
2015-09-20 00:18:57 +02:00
2015-09-20 00:18:57 +02:00
2015-09-20 00:18:57 +02:00
2015-09-04 23:48:32 +02:00
2015-11-07 03:02:04 +01:00
2015-09-04 11:26:14 +02:00
2015-08-27 12:44:31 +02:00
2015-09-04 09:33:46 -04:00
2015-09-05 08:51:19 +01:00
2015-09-01 06:34:50 +01:00
2015-09-09 16:23:26 +02:00
2015-11-07 01:10:58 +01:00
2015-11-04 22:16:38 +01:00
2015-08-28 14:40:59 -04:00
2015-08-31 23:44:39 +02:00
2015-11-06 01:17:00 +01:00
2015-10-09 21:12:30 +02:00
2015-09-08 22:31:44 +02:00
2015-09-02 20:55:09 +02:00
2015-09-02 21:10:36 +02:00
2015-09-02 21:10:36 +02:00
2015-09-02 21:10:36 +02:00
2015-08-30 12:02:07 +02:00
2015-10-30 17:55:31 +01:00
2015-11-07 14:11:12 +01:00
2015-08-28 04:25:15 +02:00
2015-08-30 16:00:05 +02:00
2015-08-30 16:00:05 +02:00
2015-08-30 16:00:05 +02:00
2015-09-04 02:19:06 +02:00
2015-09-02 21:10:36 +02:00
2015-09-05 11:56:23 +02:00
2015-09-04 02:15:50 +02:00
2015-10-08 13:15:42 +02:00
2015-08-30 04:23:30 +02:00
2015-09-04 02:14:10 +02:00
2015-09-04 01:28:26 +02:00
2015-09-02 20:45:07 +02:00
2015-09-04 01:28:25 +02:00
2015-08-27 17:26:24 +02:00
2015-10-12 21:46:54 +02:00
2015-09-07 15:32:56 +02:00
2015-08-28 19:11:55 -07:00
2015-09-01 23:02:15 +02:00
2015-09-03 09:12:14 +00:00
2015-09-04 01:13:05 +02:00
2015-10-14 14:15:11 +02:00
2015-09-04 09:59:17 -04:00
2015-09-04 09:33:45 -04:00
2015-09-02 21:10:36 +02:00