diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-16 22:40:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-16 22:40:36 +0100 |
commit | b425b81fd2040f173051efc0f1413f2101ba993e (patch) | |
tree | 4e40656f555094490e64502c1353931417a81fcd /libavformat | |
parent | 1b3b018aa4e43d7bf87df5cdf28c69a9ad5a6cbc (diff) | |
download | ffmpeg-b425b81fd2040f173051efc0f1413f2101ba993e.tar.gz |
avformat/rtsp: Fix potential pointer overflow in sdp_probe()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 91128e1309..14ac510828 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -2196,7 +2196,7 @@ static int sdp_probe(AVProbeData *p1) /* we look for a line beginning "c=IN IP" */ while (p < p_end && *p != '\0') { - if (p + sizeof("c=IN IP") - 1 < p_end && + if (sizeof("c=IN IP") - 1 < p_end - p && av_strstart(p, "c=IN IP", NULL)) return AVPROBE_SCORE_EXTENSION; |