mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
Merge commit 'c27328e749ff3be648411765cd17362fee017341'
* commit 'c27328e749ff3be648411765cd17362fee017341':
rtsp: Check for command strings without spaces
Conflicts:
libavformat/rtspdec.c
See: a0568ed254
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
544f811453
@ -360,10 +360,12 @@ static inline int parse_command_line(AVFormatContext *s, const char *line,
|
||||
RTSPState *rt = s->priv_data;
|
||||
const char *linept, *searchlinept;
|
||||
linept = strchr(line, ' ');
|
||||
|
||||
if (!linept) {
|
||||
av_log(s, AV_LOG_ERROR, "Error parsing method string\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
if (linept - line > methodsize - 1) {
|
||||
av_log(s, AV_LOG_ERROR, "Method string too long\n");
|
||||
return AVERROR(EIO);
|
||||
|
Loading…
Reference in New Issue
Block a user