Blame SOURCES/0001-h264parse-Ensure-codec_data-has-the-required-size-wh.patch

4ab9ea
From 3003cbe1624cc6daa416caba9c1dce0180f3837c Mon Sep 17 00:00:00 2001
4ab9ea
From: Wim Taymans <wtaymans@redhat.com>
4ab9ea
Date: Wed, 7 Dec 2016 09:37:10 +0100
4ab9ea
Subject: [PATCH] h264parse: Ensure codec_data has the required size when
4ab9ea
 reading number of SPS
4ab9ea
4ab9ea
https://bugzilla.gnome.org/show_bug.cgi?id=774896
4ab9ea
---
4ab9ea
 gst/videoparsers/gsth264parse.c | 3 +++
4ab9ea
 1 file changed, 3 insertions(+)
4ab9ea
4ab9ea
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
4ab9ea
index cf81657..4c14f2b 100644
4ab9ea
--- a/gst/videoparsers/gsth264parse.c
4ab9ea
+++ b/gst/videoparsers/gsth264parse.c
4ab9ea
@@ -1605,6 +1605,9 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
4ab9ea
       off = nalu.offset + nalu.size;
4ab9ea
     }
4ab9ea
 
4ab9ea
+    if (off >= size) {
4ab9ea
+      goto avcc_too_small;
4ab9ea
+    }
4ab9ea
     num_pps = data[off];
4ab9ea
     off++;
4ab9ea
 
4ab9ea
-- 
4ab9ea
2.9.3
4ab9ea