mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
wavparse: Make sure enough data for the tag list tag is available before parsing
Thanks to Antonio Morales for finding and reporting the issue. Fixes GHSL-2024-258 Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3886 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8042>
This commit is contained in:
parent
13b48016b3
commit
4c198f4891
1 changed files with 4 additions and 0 deletions
|
@ -1489,6 +1489,10 @@ gst_wavparse_stream_headers (GstWavParse * wav)
|
|||
case GST_RIFF_TAG_LIST:{
|
||||
guint32 ltag;
|
||||
|
||||
/* Need at least the ltag */
|
||||
if (size < 4)
|
||||
goto exit;
|
||||
|
||||
if (wav->streaming) {
|
||||
const guint8 *data = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue