]> git.sesse.net Git - ffmpeg/commit
avfilter/graphparser: Check allocations for success
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 22 Aug 2020 23:51:22 +0000 (01:51 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 23 Aug 2020 17:57:42 +0000 (19:57 +0200)
commit95b8df687cc0182a4ec7666c2bbc2826c9ef0852
treef0b52e67da1d5e3d4876b90111bf245895432846
parentf33faa5b9bfb288f83db034fa1f8719ab8a994c6
avfilter/graphparser: Check allocations for success

parse_filter() did not check the return value of av_get_token() for
success; in case name (the name of a filter) was NULL, one got a
segfault in av_strlcpy() (called from create_filter()).

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/graphparser.c