mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
cafdec: check for eof in read_info_chunk()
Fixes Ticket #3864 Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ca2160b5b3
commit
90b2f31367
@ -205,7 +205,7 @@ static void read_info_chunk(AVFormatContext *s, int64_t size)
|
||||
AVIOContext *pb = s->pb;
|
||||
unsigned int i;
|
||||
unsigned int nb_entries = avio_rb32(pb);
|
||||
for (i = 0; i < nb_entries; i++) {
|
||||
for (i = 0; i < nb_entries && !avio_feof(pb); i++) {
|
||||
char key[32];
|
||||
char value[1024];
|
||||
avio_get_str(pb, INT_MAX, key, sizeof(key));
|
||||
|
Loading…
Reference in New Issue
Block a user