From 1dbfef93d6aca245f1793f9b5348a9dbcd02be97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> Date: Wed, 23 Nov 2016 10:51:17 +0200 Subject: [PATCH 1/2] h264parse: Ensure codec_data has the required size when reading number of SPS https://bugzilla.gnome.org/show_bug.cgi?id=774896 --- gst/videoparsers/gsth264parse.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1638,6 +1638,9 @@ off = nalu.offset + nalu.size; } + if (off >= size) { + goto avcc_too_small; + } num_pps = data[off]; off++;