mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
typefind: bounds check windows ico detection
Fixes out of bounds read https://bugzilla.gnome.org/show_bug.cgi?id=774902
This commit is contained in:
parent
c2dd0149c9
commit
2fdccfd64f
1 changed files with 2 additions and 0 deletions
|
@ -5224,6 +5224,8 @@ 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)
|
||||||
|
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