mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 03:28:27 +00:00
id2v2: check the return value of decode_str()
Fixes CID1030348 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2d8f880a9b
commit
6241e8a382
@ -527,7 +527,8 @@ static void read_chapter(AVFormatContext *s, AVIOContext *pb, int len, char *tta
|
||||
int taglen;
|
||||
char tag[5];
|
||||
|
||||
decode_str(s, pb, 0, &dst, &len);
|
||||
if (decode_str(s, pb, 0, &dst, &len) < 0)
|
||||
return;
|
||||
if (len < 16)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user