mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
wavparse: Check that at least 4 bytes are available before parsing cue chunks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8042>
This commit is contained in:
parent
296e17b4ea
commit
c72025cabd
1 changed files with 5 additions and 0 deletions
|
@ -790,6 +790,11 @@ gst_wavparse_cue_chunk (GstWavParse * wav, const guint8 * data, guint32 size)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
if (size < 4) {
|
||||
GST_WARNING_OBJECT (wav, "broken file %d", size);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
ncues = GST_READ_UINT32_LE (data);
|
||||
|
||||
if (size < 4 + ncues * 24) {
|
||||
|
|
Loading…
Reference in a new issue