FFmpeg/libavformat
Martin Storsjö 0ef1660a63 sierravmd: Do sanity checking of frame sizes
Limit the size to INT_MAX/2 (for simplicity) to be sure that
size + BYTES_PER_FRAME_RECORD won't overflow.

Also factorize other existing error return paths.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-16 11:04:52 +03:00
..
2013-08-05 16:13:35 +02:00
2013-06-04 17:20:19 +02:00
2013-02-06 09:48:51 +01:00
2013-09-06 11:13:36 +02:00
2013-02-01 12:42:17 +01:00
2012-12-21 00:18:34 +01:00
2013-04-25 10:13:27 +02:00
2013-08-07 21:22:03 +02:00
2013-08-27 14:38:54 +02:00
2012-12-21 00:18:34 +01:00
2013-03-18 10:48:29 +01:00
2013-05-17 06:31:05 +02:00
2013-01-14 19:20:47 +01:00
2013-04-25 10:13:27 +02:00
2013-09-12 13:16:15 +02:00
2013-09-12 13:16:15 +02:00
2013-01-29 07:31:55 +01:00
2013-05-04 20:01:08 +02:00
2013-05-15 23:01:21 +02:00
2013-05-07 14:37:32 +02:00
2013-07-27 16:00:41 +02:00
2013-04-25 10:13:27 +02:00
2013-03-31 16:10:52 +02:00
2013-03-31 16:10:52 +02:00
2013-05-03 18:26:12 +02:00
2013-05-16 00:23:30 +02:00
2013-05-18 07:12:56 +02:00
2013-08-11 01:19:27 +02:00
2013-08-11 01:19:27 +02:00
2013-07-26 21:43:29 +03:00
2012-12-11 09:37:17 -05:00
2013-03-08 08:11:05 +01:00
2013-08-05 16:13:36 +02:00
2013-05-06 09:14:43 +02:00
2013-05-28 18:19:19 +02:00
2012-11-25 11:10:52 -05:00