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:
Edward Hervey 2017-12-07 11:03:20 +01:00 committed by Edward Hervey
parent e1e46b674f
commit a3bf3094d1

View file

@ -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;