mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
typefind: Fix ico out-of-bound read
The furthest we go to verify the data is reading a guint32 at offset 18, therefore make sure we can read as much.
This commit is contained in:
parent
e1e46b674f
commit
a3bf3094d1
1 changed files with 1 additions and 1 deletions
|
@ -5337,7 +5337,7 @@ windows_icon_typefind (GstTypeFind * find, gpointer user_data)
|
|||
gint32 size, offset;
|
||||
|
||||
datalen = gst_type_find_get_length (find);
|
||||
if (datalen < 18)
|
||||
if (datalen < 22)
|
||||
return;
|
||||
if ((data = gst_type_find_peek (find, 0, 6)) == NULL)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue