You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avutil/avstring: dont mess with NULL pointers in av_match_list()
Fixes: applying zero offset to null pointer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -452,10 +452,12 @@ int av_match_list(const char *name, const char *list, char separator)
|
|||||||
if (k && (!p[k] || p[k] == separator))
|
if (k && (!p[k] || p[k] == separator))
|
||||||
return 1;
|
return 1;
|
||||||
q = strchr(q, separator);
|
q = strchr(q, separator);
|
||||||
q += !!q;
|
if(q)
|
||||||
|
q++;
|
||||||
}
|
}
|
||||||
p = strchr(p, separator);
|
p = strchr(p, separator);
|
||||||
p += !!p;
|
if (p)
|
||||||
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user