1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavformat
Xi Wang 2f014567cf rtpenc: fix overflow checking in avc_mp4_find_startcode()
The check `start + res < start' is broken since pointer overflow is
undefined behavior in C.  Many compilers such as gcc/clang optimize
away this check.

Use `res > end - start' instead.  Also change `res' to unsigned int
to avoid signed left-shift overflow.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-23 05:28:01 +01:00
..
2012-12-01 00:30:11 +01:00
2012-11-27 10:17:28 +00:00
2012-12-16 10:41:00 +00:00
2013-01-01 17:03:22 +00:00
2013-01-22 20:27:05 +01:00
2012-12-30 23:37:14 +01:00
2012-11-03 05:35:35 +01:00
2012-09-28 02:40:53 +02:00
2012-11-11 22:58:56 +01:00
2012-12-04 11:25:46 +00:00
2012-12-04 11:25:46 +00:00
2012-12-04 11:25:46 +00:00
2012-12-05 12:40:57 +00:00
2012-12-16 16:53:01 +01:00
2012-10-26 15:34:25 +00:00
2012-11-12 10:33:18 -05:00
2012-11-24 15:04:32 +00:00
2012-10-18 00:55:03 +02:00
2012-11-19 10:19:50 +01:00
2012-12-05 20:44:28 +00:00
2012-11-21 16:39:44 +00:00
2013-01-01 19:29:04 +01:00
2012-10-10 15:50:32 +00:00
2012-12-05 20:18:04 +00:00
2012-12-05 13:01:22 +00:00
2012-11-08 15:54:14 +01:00
2012-11-27 13:24:00 +01:00
2012-12-04 15:21:24 +00:00
2012-12-21 00:18:34 +01:00
2012-12-21 00:18:34 +01:00
2013-01-21 02:50:02 +01:00
2012-12-21 00:18:34 +01:00
2013-01-07 10:19:49 +00:00
2012-12-21 22:56:13 +01:00
2013-01-03 21:48:38 +01:00
2012-12-05 13:01:22 +00:00
2012-12-05 13:01:22 +00:00
2013-01-07 11:43:20 +00:00
2013-01-17 04:55:14 +01:00
2013-01-11 10:07:52 +00:00
2012-10-25 20:57:40 +00:00
2013-01-04 20:58:59 +01:00
2012-12-30 23:09:49 +01:00
2013-01-22 23:06:49 +01:00
2012-12-01 09:06:24 +00:00
2012-12-29 18:56:33 +01:00
2012-12-23 21:22:43 +00:00
2013-01-21 16:41:50 +01:00
2013-01-15 20:19:28 +01:00
2012-11-24 10:04:20 +00:00
2012-11-13 13:25:19 +00:00
2013-01-07 11:43:20 +00:00
2012-11-21 15:34:45 +00:00
2012-12-04 15:52:58 +00:00
2012-12-24 02:51:51 +01:00
2012-12-23 16:08:10 +01:00
2012-11-21 09:48:46 +00:00
2013-01-14 13:13:00 +02:00
2012-08-28 22:29:20 +02:00
2012-12-17 01:53:35 +01:00
2012-11-21 23:51:21 +01:00
2012-11-21 10:38:52 +00:00
2012-12-17 13:34:30 +01:00
2012-12-06 18:06:52 +00:00
2012-11-17 19:58:54 +00:00
2012-12-28 21:50:42 +00:00
2012-12-28 21:58:03 +00:00
2013-01-06 18:48:51 +01:00
2013-01-06 18:48:51 +01:00
2013-01-03 07:25:47 +01:00
2012-10-27 23:03:07 +02:00
2012-12-09 22:01:00 +00:00
2012-12-16 10:27:54 +00:00
2012-10-15 08:12:25 +00:00
2012-08-29 00:05:03 +02:00
2012-11-04 04:46:10 +00:00
2013-01-07 10:08:38 +00:00
2013-01-07 10:08:38 +00:00
2013-01-07 10:08:38 +00:00
2013-01-07 10:08:38 +00:00
2012-12-21 00:18:34 +01:00
2012-11-06 15:52:33 +01:00
2013-01-20 20:59:30 +01:00
2013-01-07 23:14:58 +11:00
2012-11-24 10:20:46 +00:00
2012-12-21 00:18:34 +01:00
2013-01-07 13:25:20 +01:00
2012-12-21 21:18:12 +01:00