mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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;
|
gint32 size, offset;
|
||||||
|
|
||||||
datalen = gst_type_find_get_length (find);
|
datalen = gst_type_find_get_length (find);
|
||||||
if (datalen < 18)
|
if (datalen < 22)
|
||||||
return;
|
return;
|
||||||
if ((data = gst_type_find_peek (find, 0, 6)) == NULL)
|
if ((data = gst_type_find_peek (find, 0, 6)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue