mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-13 22:58:40 +00:00
avformat/rtsp: Fix potential pointer overflow in sdp_probe()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1b3b018aa4
commit
b425b81fd2
@ -2196,7 +2196,7 @@ static int sdp_probe(AVProbeData *p1)
|
|||||||
|
|
||||||
/* we look for a line beginning "c=IN IP" */
|
/* we look for a line beginning "c=IN IP" */
|
||||||
while (p < p_end && *p != '\0') {
|
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))
|
av_strstart(p, "c=IN IP", NULL))
|
||||||
return AVPROBE_SCORE_EXTENSION;
|
return AVPROBE_SCORE_EXTENSION;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user