/[packages]/updates/5/gstreamer1.0-plugins-bad/current/SOURCES/0006-h265parse-Ensure-codec_data-has-the-required-size-wh.patch
ViewVC logotype

Contents of /updates/5/gstreamer1.0-plugins-bad/current/SOURCES/0006-h265parse-Ensure-codec_data-has-the-required-size-wh.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1185974 - (show annotations) (download)
Wed Dec 27 21:20:34 2017 UTC (22 months, 3 weeks ago) by luigiwalser
File size: 1578 byte(s)
add patches from debian to fix additional security issues (mga#19814, mga#20238)
1 From 43736e5c376b0d79680817a28349aaa300f14c0d Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3 Date: Wed, 23 Nov 2016 10:52:05 +0200
4 Subject: [PATCH] h265parse: Ensure codec_data has the required size when
5 reading number of NAL arrays
6
7 https://bugzilla.gnome.org/show_bug.cgi?id=774896
8 ---
9 gst/videoparsers/gsth265parse.c | 10 +++++++++-
10 1 file changed, 9 insertions(+), 1 deletion(-)
11
12 Index: gst-plugins-bad1.0-1.4.4/gst/videoparsers/gsth265parse.c
13 ===================================================================
14 --- gst-plugins-bad1.0-1.4.4.orig/gst/videoparsers/gsth265parse.c
15 +++ gst-plugins-bad1.0-1.4.4/gst/videoparsers/gsth265parse.c
16 @@ -1767,6 +1767,7 @@ gst_h265_parse_set_caps (GstBaseParse *
17 (value = gst_structure_get_value (str, "codec_data"))) {
18 GstMapInfo map;
19 guint8 *data;
20 + guint num_nal_arrays;
21
22 GST_DEBUG_OBJECT (h265parse, "have packetized h265");
23 /* make note for optional split processing */
24 @@ -1795,8 +1796,15 @@ gst_h265_parse_set_caps (GstBaseParse *
25 GST_DEBUG_OBJECT (h265parse, "nal length size %u",
26 h265parse->nal_length_size);
27
28 + num_nal_arrays = data[22];
29 off = 23;
30 - for (i = 0; i < data[22]; i++) {
31 +
32 + for (i = 0; i < num_nal_arrays; i++) {
33 + if (off + 3 >= size) {
34 + gst_buffer_unmap (codec_data, &map);
35 + goto hvcc_too_small;
36 + }
37 +
38 num_nals = GST_READ_UINT16_BE (data + off + 1);
39 for (j = 0; j < num_nals; j++) {
40 parseres = gst_h265_parser_identify_nalu_hevc (h265parse->nalparser,

  ViewVC Help
Powered by ViewVC 1.1.26