[FFmpeg-cvslog] avformat/rtsp: Fix potential pointer overflow in sdp_probe()
Michael Niedermayer
git at videolan.org
Mon Mar 16 22:59:48 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 16 22:40:36 2015 +0100| [b425b81fd2040f173051efc0f1413f2101ba993e] | committer: Michael Niedermayer
avformat/rtsp: Fix potential pointer overflow in sdp_probe()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b425b81fd2040f173051efc0f1413f2101ba993e
---
libavformat/rtsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 91128e1..14ac510 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;
More information about the ffmpeg-cvslog
mailing list