Commit 26afdbcf authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch

ffserver: fix NULL dereference with quoted Stream name.

parent a9ba9268
...@@ -4270,7 +4270,7 @@ static int parse_ffconfig(const char *filename) ...@@ -4270,7 +4270,7 @@ static int parse_ffconfig(const char *filename)
stream = av_mallocz(sizeof(FFStream)); stream = av_mallocz(sizeof(FFStream));
get_arg(stream->filename, sizeof(stream->filename), &p); get_arg(stream->filename, sizeof(stream->filename), &p);
q = strrchr(stream->filename, '>'); q = strrchr(stream->filename, '>');
if (*q) if (q)
*q = '\0'; *q = '\0';
for (s = first_stream; s; s = s->next) { for (s = first_stream; s; s = s->next) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment