mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
wavparse: Check that at least 32 bytes are available before parsing smpl chunks
Thanks to Antonio Morales for finding and reporting the issue. Fixes GHSL-2024-259 Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3887 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8042>
This commit is contained in:
parent
c72025cabd
commit
93d79c22a8
1 changed files with 3 additions and 0 deletions
|
@ -894,6 +894,9 @@ gst_wavparse_smpl_chunk (GstWavParse * wav, const guint8 * data, guint32 size)
|
|||
{
|
||||
guint32 note_number;
|
||||
|
||||
if (size < 32)
|
||||
return FALSE;
|
||||
|
||||
/*
|
||||
manufacturer_id = GST_READ_UINT32_LE (data);
|
||||
product_id = GST_READ_UINT32_LE (data + 4);
|
||||
|
|
Loading…
Reference in a new issue