mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
tag: id3v2: fix parsing of unsynced frames with data length indicator
Fixes bug #614158.
This commit is contained in:
parent
50a6cb5450
commit
366ed8edb4
1 changed files with 5 additions and 3 deletions
|
@ -116,9 +116,11 @@ id3demux_id3v2_parse_frame (ID3TagsWorking * work)
|
|||
}
|
||||
frame_data += 4;
|
||||
frame_data_size -= 4;
|
||||
if (work->parse_size < frame_data_size) {
|
||||
GST_WARNING ("ID3v2 frame %s has invalid size %d.", tag_name,
|
||||
frame_data_size);
|
||||
GST_LOG ("Un-unsynced data size %d (of %d)", work->parse_size,
|
||||
frame_data_size);
|
||||
if (work->parse_size > frame_data_size) {
|
||||
GST_WARNING ("ID3v2 frame %s data has invalid size %d (>%d)",
|
||||
work->frame_id, work->parse_size, frame_data_size);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue