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
@ -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…
x
Reference in New Issue
Block a user