summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-12-07 11:03:20 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-12-07 15:24:14 +0100
commit4d3f227366fb42ebddf12a87b021f56857daf697 (patch)
treecafa12cc13403794ac4dc985a25559b0140b0a81
parent5adc9b1d2f28c6ce298229c45347d4f2ea2d47fb (diff)
downloadgstreamer-plugins-base-4d3f227366fb42ebddf12a87b021f56857daf697.tar.gz
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.
-rw-r--r--gst/typefind/gsttypefindfunctions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c
index 76dbb461c..70a8bf9b1 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -5243,7 +5243,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;