avformat/concat: check the terminating character returned by av_get_token()
authorJames Almer <jamrial@gmail.com>
Tue, 27 Jul 2021 15:00:03 +0000 (12:00 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Jul 2021 15:13:32 +0000 (12:13 -0300)
commit487dfa9f04bb825669441476ffd683a7783d5ce9
tree1c73c59d0ee4b4bec29966561f7f43b056c394ff
parentbc5faacc3f38484e3e9ee2f0143d0ad6884ec747
avformat/concat: check the terminating character returned by av_get_token()

Don't attempt to increase the cursor pointer if it was \0.
Fixes invalid reads.

Reviewed-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/concat.c