mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
id3v2: reject APICs with size of 0
fixes ticket #1324 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cb7b0f3573
commit
4d18f4c15b
@ -488,7 +488,7 @@ static void read_apic(AVFormatContext *s, AVIOContext *pb, int taglen, char *tag
|
|||||||
|
|
||||||
apic->len = taglen;
|
apic->len = taglen;
|
||||||
apic->data = av_malloc(taglen);
|
apic->data = av_malloc(taglen);
|
||||||
if (!apic->data || avio_read(pb, apic->data, taglen) != taglen)
|
if (!apic->data || !apic->len || avio_read(pb, apic->data, taglen) != taglen)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
new_extra->tag = "APIC";
|
new_extra->tag = "APIC";
|
||||||
|
Loading…
Reference in New Issue
Block a user