mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
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>
This commit is contained in:
parent
bc5faacc3f
commit
487dfa9f04
@ -251,7 +251,8 @@ static av_cold int concatf_open(URLContext *h, const char *uri, int flags)
|
||||
err = AVERROR(ENOMEM);
|
||||
break;
|
||||
}
|
||||
cursor++;
|
||||
if (*cursor)
|
||||
cursor++;
|
||||
|
||||
if (++len == SIZE_MAX / sizeof(*nodes)) {
|
||||
av_free(node_uri);
|
||||
|
Loading…
Reference in New Issue
Block a user