diff options
author | Peter Marko <peter.marko@siemens.com> | 2024-12-30 18:27:13 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-01-09 06:25:35 -0800 |
commit | 2bf43257229bf78ec6c8afd0cdf5fa93cd7d1157 (patch) | |
tree | 52912b82023d1ed7782196e3f172cbea4ef2690b /meta/recipes-multimedia | |
parent | 144b7586d124aec1ab6715282492ebca07fa2e51 (diff) | |
download | poky-2bf43257229bf78ec6c8afd0cdf5fa93cd7d1157.tar.gz |
gstreamer1.0-plugins-good: patch several CVEs
Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057
(From OE-Core rev: 4edd9caa9703e067167c4a185c7338c4e89f795b)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
fixup! gstreamer1.0-plugins-good: patch CVE-2024-47540 and CVE-2024-47601
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia')
8 files changed, 335 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0015-matroskademux-Only-unmap-GstMapInfo-in-WavPack-heade.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0015-matroskademux-Only-unmap-GstMapInfo-in-WavPack-heade.patch new file mode 100644 index 0000000000..354a2e5194 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0015-matroskademux-Only-unmap-GstMapInfo-in-WavPack-heade.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From 008f0d52408f57f0704d5639b72db2f330b8f003 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 16:32:48 +0300 | ||
4 | Subject: [PATCH 1/7] matroskademux: Only unmap GstMapInfo in WavPack header | ||
5 | extraction error paths if previously mapped | ||
6 | |||
7 | Thanks to Antonio Morales for finding and reporting the issue. | ||
8 | |||
9 | Fixes GHSL-2024-197 | ||
10 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3863 | ||
11 | |||
12 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
13 | |||
14 | CVE: CVE-2024-47597 | ||
15 | CVE: CVE-2024-47601 | ||
16 | CVE: CVE-2024-47602 | ||
17 | CVE: CVE-2024-47603 | ||
18 | CVE: CVE-2024-47834 | ||
19 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/008f0d52408f57f0704d5639b72db2f330b8f003] | ||
20 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
21 | --- | ||
22 | gst/matroska/matroska-demux.c | 4 ++-- | ||
23 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
24 | |||
25 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
26 | index 9b3cf83adb..35e60b7147 100644 | ||
27 | --- a/gst/matroska/matroska-demux.c | ||
28 | +++ b/gst/matroska/matroska-demux.c | ||
29 | @@ -3885,7 +3885,6 @@ gst_matroska_demux_add_wvpk_header (GstElement * element, | ||
30 | GstMatroskaTrackAudioContext *audiocontext = | ||
31 | (GstMatroskaTrackAudioContext *) stream; | ||
32 | GstBuffer *newbuf = NULL; | ||
33 | - GstMapInfo map, outmap; | ||
34 | guint8 *buf_data, *data; | ||
35 | Wavpack4Header wvh; | ||
36 | |||
37 | @@ -3902,11 +3901,11 @@ gst_matroska_demux_add_wvpk_header (GstElement * element, | ||
38 | |||
39 | if (audiocontext->channels <= 2) { | ||
40 | guint32 block_samples, tmp; | ||
41 | + GstMapInfo outmap; | ||
42 | gsize size = gst_buffer_get_size (*buf); | ||
43 | |||
44 | if (size < 4) { | ||
45 | GST_ERROR_OBJECT (element, "Too small wavpack buffer"); | ||
46 | - gst_buffer_unmap (*buf, &map); | ||
47 | return GST_FLOW_ERROR; | ||
48 | } | ||
49 | |||
50 | @@ -3944,6 +3943,7 @@ gst_matroska_demux_add_wvpk_header (GstElement * element, | ||
51 | *buf = newbuf; | ||
52 | audiocontext->wvpk_block_index += block_samples; | ||
53 | } else { | ||
54 | + GstMapInfo map, outmap; | ||
55 | guint8 *outdata = NULL; | ||
56 | gsize buf_size, size; | ||
57 | guint32 block_samples, flags, crc; | ||
58 | -- | ||
59 | 2.30.2 | ||
60 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0016-matroskademux-Fix-off-by-one-when-parsing-multi-chan.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0016-matroskademux-Fix-off-by-one-when-parsing-multi-chan.patch new file mode 100644 index 0000000000..39346ca829 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0016-matroskademux-Fix-off-by-one-when-parsing-multi-chan.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From b7e1b13af70b7c042f29674f5482b502af82d829 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 16:33:39 +0300 | ||
4 | Subject: [PATCH 2/7] matroskademux: Fix off-by-one when parsing multi-channel | ||
5 | WavPack | ||
6 | |||
7 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
8 | |||
9 | CVE: CVE-2024-47597 | ||
10 | CVE: CVE-2024-47601 | ||
11 | CVE: CVE-2024-47602 | ||
12 | CVE: CVE-2024-47603 | ||
13 | CVE: CVE-2024-47834 | ||
14 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/b7e1b13af70b7c042f29674f5482b502af82d829] | ||
15 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
16 | --- | ||
17 | gst/matroska/matroska-demux.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
21 | index 35e60b7147..583fbbe6e6 100644 | ||
22 | --- a/gst/matroska/matroska-demux.c | ||
23 | +++ b/gst/matroska/matroska-demux.c | ||
24 | @@ -3970,7 +3970,7 @@ gst_matroska_demux_add_wvpk_header (GstElement * element, | ||
25 | data += 4; | ||
26 | size -= 4; | ||
27 | |||
28 | - while (size > 12) { | ||
29 | + while (size >= 12) { | ||
30 | flags = GST_READ_UINT32_LE (data); | ||
31 | data += 4; | ||
32 | size -= 4; | ||
33 | -- | ||
34 | 2.30.2 | ||
35 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0017-matroskademux-Check-for-big-enough-WavPack-codec-pri.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0017-matroskademux-Check-for-big-enough-WavPack-codec-pri.patch new file mode 100644 index 0000000000..af1e9bf6d7 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0017-matroskademux-Check-for-big-enough-WavPack-codec-pri.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 455393ef0f2bb0a49c5bf32ef208af914c44e806 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 18:25:53 +0300 | ||
4 | Subject: [PATCH 3/7] matroskademux: Check for big enough WavPack codec private | ||
5 | data before accessing it | ||
6 | |||
7 | Thanks to Antonio Morales for finding and reporting the issue. | ||
8 | |||
9 | Fixes GHSL-2024-250 | ||
10 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3866 | ||
11 | |||
12 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
13 | |||
14 | CVE: CVE-2024-47597 | ||
15 | CVE: CVE-2024-47601 | ||
16 | CVE: CVE-2024-47602 | ||
17 | CVE: CVE-2024-47603 | ||
18 | CVE: CVE-2024-47834 | ||
19 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/455393ef0f2bb0a49c5bf32ef208af914c44e806] | ||
20 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
21 | --- | ||
22 | gst/matroska/matroska-demux.c | 5 +++++ | ||
23 | 1 file changed, 5 insertions(+) | ||
24 | |||
25 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
26 | index 583fbbe6e6..91e66fefc3 100644 | ||
27 | --- a/gst/matroska/matroska-demux.c | ||
28 | +++ b/gst/matroska/matroska-demux.c | ||
29 | @@ -3888,6 +3888,11 @@ gst_matroska_demux_add_wvpk_header (GstElement * element, | ||
30 | guint8 *buf_data, *data; | ||
31 | Wavpack4Header wvh; | ||
32 | |||
33 | + if (!stream->codec_priv || stream->codec_priv_size < 2) { | ||
34 | + GST_ERROR_OBJECT (element, "No or too small wavpack codec private data"); | ||
35 | + return GST_FLOW_ERROR; | ||
36 | + } | ||
37 | + | ||
38 | wvh.ck_id[0] = 'w'; | ||
39 | wvh.ck_id[1] = 'v'; | ||
40 | wvh.ck_id[2] = 'p'; | ||
41 | -- | ||
42 | 2.30.2 | ||
43 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0018-matroskademux-Don-t-take-data-out-of-an-empty-adapte.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0018-matroskademux-Don-t-take-data-out-of-an-empty-adapte.patch new file mode 100644 index 0000000000..aaae3d7abe --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0018-matroskademux-Don-t-take-data-out-of-an-empty-adapte.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From be0ac3f40949cb951d5f0761f4a3bd597a94947f Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 19:04:51 +0300 | ||
4 | Subject: [PATCH 4/7] matroskademux: Don't take data out of an empty adapter | ||
5 | when processing WavPack frames | ||
6 | |||
7 | Thanks to Antonio Morales for finding and reporting the issue. | ||
8 | |||
9 | Fixes GHSL-2024-249 | ||
10 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3865 | ||
11 | |||
12 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
13 | |||
14 | CVE: CVE-2024-47597 | ||
15 | CVE: CVE-2024-47601 | ||
16 | CVE: CVE-2024-47602 | ||
17 | CVE: CVE-2024-47603 | ||
18 | CVE: CVE-2024-47834 | ||
19 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/be0ac3f40949cb951d5f0761f4a3bd597a94947f] | ||
20 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
21 | --- | ||
22 | .../gst-plugins-good/gst/matroska/matroska-demux.c | 11 ++++++++--- | ||
23 | 1 file changed, 8 insertions(+), 3 deletions(-) | ||
24 | |||
25 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
26 | index 91e66fefc3..98ed51e86a 100644 | ||
27 | --- a/gst/matroska/matroska-demux.c | ||
28 | +++ b/gst/matroska/matroska-demux.c | ||
29 | @@ -4036,11 +4036,16 @@ gst_matroska_demux_add_wvpk_header (GstElement * element, | ||
30 | } | ||
31 | gst_buffer_unmap (*buf, &map); | ||
32 | |||
33 | - newbuf = gst_adapter_take_buffer (adapter, gst_adapter_available (adapter)); | ||
34 | + size = gst_adapter_available (adapter); | ||
35 | + if (size > 0) { | ||
36 | + newbuf = gst_adapter_take_buffer (adapter, size); | ||
37 | + gst_buffer_copy_into (newbuf, *buf, | ||
38 | + GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_FLAGS, 0, -1); | ||
39 | + } else { | ||
40 | + newbuf = NULL; | ||
41 | + } | ||
42 | g_object_unref (adapter); | ||
43 | |||
44 | - gst_buffer_copy_into (newbuf, *buf, | ||
45 | - GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_FLAGS, 0, -1); | ||
46 | gst_buffer_unref (*buf); | ||
47 | *buf = newbuf; | ||
48 | |||
49 | -- | ||
50 | 2.30.2 | ||
51 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch new file mode 100644 index 0000000000..7216d7c9d3 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From effbbfd771487cc06c79d5a7e447a849884cc6cf Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 19:06:03 +0300 | ||
4 | Subject: [PATCH 5/7] matroskademux: Skip over laces directly when | ||
5 | postprocessing the frame fails | ||
6 | |||
7 | Otherwise NULL buffers might be handled afterwards. | ||
8 | |||
9 | Thanks to Antonio Morales for finding and reporting the issue. | ||
10 | |||
11 | Fixes GHSL-2024-249 | ||
12 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3865 | ||
13 | |||
14 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
15 | |||
16 | CVE: CVE-2024-47540 | ||
17 | CVE: CVE-2024-47601 | ||
18 | CVE: CVE-2024-47602 | ||
19 | CVE: CVE-2024-47603 | ||
20 | CVE: CVE-2024-47834 | ||
21 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/effbbfd771487cc06c79d5a7e447a849884cc6cf] | ||
22 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
23 | --- | ||
24 | .../gst-plugins-good/gst/matroska/matroska-demux.c | 12 ++++++++++++ | ||
25 | 1 file changed, 12 insertions(+) | ||
26 | |||
27 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
28 | index 98ed51e86a..e0a4405dce 100644 | ||
29 | --- a/gst/matroska/matroska-demux.c | ||
30 | +++ b/gst/matroska/matroska-demux.c | ||
31 | @@ -4982,6 +4982,18 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux, | ||
32 | if (stream->postprocess_frame) { | ||
33 | GST_LOG_OBJECT (demux, "running post process"); | ||
34 | ret = stream->postprocess_frame (GST_ELEMENT (demux), stream, &sub); | ||
35 | + if (ret != GST_FLOW_OK) { | ||
36 | + gst_clear_buffer (&sub); | ||
37 | + goto next_lace; | ||
38 | + } | ||
39 | + | ||
40 | + if (sub == NULL) { | ||
41 | + GST_WARNING_OBJECT (demux, | ||
42 | + "Postprocessing buffer with timestamp %" GST_TIME_FORMAT | ||
43 | + " for stream %d failed", GST_TIME_ARGS (buffer_timestamp), | ||
44 | + stream_num); | ||
45 | + goto next_lace; | ||
46 | + } | ||
47 | } | ||
48 | |||
49 | /* At this point, we have a sub-buffer pointing at data within a larger | ||
50 | -- | ||
51 | 2.30.2 | ||
52 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0020-matroskademux-Skip-over-zero-sized-Xiph-stream-heade.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0020-matroskademux-Skip-over-zero-sized-Xiph-stream-heade.patch new file mode 100644 index 0000000000..cb5ba69af0 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0020-matroskademux-Skip-over-zero-sized-Xiph-stream-heade.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From ed7b46bac3fa14f95422cc4bb4655d041df51454 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 19:19:42 +0300 | ||
4 | Subject: [PATCH 6/7] matroskademux: Skip over zero-sized Xiph stream headers | ||
5 | |||
6 | Thanks to Antonio Morales for finding and reporting the issue. | ||
7 | |||
8 | Fixes GHSL-2024-251 | ||
9 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3867 | ||
10 | |||
11 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
12 | |||
13 | CVE: CVE-2024-47540 | ||
14 | CVE: CVE-2024-47601 | ||
15 | CVE: CVE-2024-47602 | ||
16 | CVE: CVE-2024-47603 | ||
17 | CVE: CVE-2024-47834 | ||
18 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/ed7b46bac3fa14f95422cc4bb4655d041df51454] | ||
19 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
20 | --- | ||
21 | gst/matroska/matroska-ids.c | 6 ++++-- | ||
22 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
23 | |||
24 | diff --git a/gst/matroska/matroska-ids.c b/gst/matroska/matroska-ids.c | ||
25 | index f11b7c2ce3..ba645f7306 100644 | ||
26 | --- a/gst/matroska/matroska-ids.c | ||
27 | +++ b/gst/matroska/matroska-ids.c | ||
28 | @@ -189,8 +189,10 @@ gst_matroska_parse_xiph_stream_headers (gpointer codec_data, | ||
29 | if (offset + length[i] > codec_data_size) | ||
30 | goto error; | ||
31 | |||
32 | - hdr = gst_buffer_new_memdup (p + offset, length[i]); | ||
33 | - gst_buffer_list_add (list, hdr); | ||
34 | + if (length[i] > 0) { | ||
35 | + hdr = gst_buffer_new_memdup (p + offset, length[i]); | ||
36 | + gst_buffer_list_add (list, hdr); | ||
37 | + } | ||
38 | |||
39 | offset += length[i]; | ||
40 | } | ||
41 | -- | ||
42 | 2.30.2 | ||
43 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch new file mode 100644 index 0000000000..371eb9da9b --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 98e4356be7afa869373f96b4e8ca792c5f9707ee Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Wed, 9 Oct 2024 11:52:52 -0400 | ||
4 | Subject: [PATCH 7/7] matroskademux: Put a copy of the codec data into the | ||
5 | A_MS/ACM caps | ||
6 | |||
7 | The original codec data buffer is owned by matroskademux and does not | ||
8 | necessarily live as long as the caps. | ||
9 | |||
10 | Thanks to Antonio Morales for finding and reporting the issue. | ||
11 | |||
12 | Fixes GHSL-2024-280 | ||
13 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3894 | ||
14 | |||
15 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
16 | |||
17 | CVE: CVE-2024-47540 | ||
18 | CVE: CVE-2024-47601 | ||
19 | CVE: CVE-2024-47602 | ||
20 | CVE: CVE-2024-47603 | ||
21 | CVE: CVE-2024-47834 | ||
22 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/98e4356be7afa869373f96b4e8ca792c5f9707ee] | ||
23 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
24 | --- | ||
25 | gst/matroska/matroska-demux.c | 3 +-- | ||
26 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
27 | |||
28 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
29 | index e0a4405dce..80da306731 100644 | ||
30 | --- a/gst/matroska/matroska-demux.c | ||
31 | +++ b/gst/matroska/matroska-demux.c | ||
32 | @@ -7165,8 +7165,7 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext * | ||
33 | |||
34 | /* 18 is the waveformatex size */ | ||
35 | if (size > 18) { | ||
36 | - codec_data = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, | ||
37 | - data + 18, size - 18, 0, size - 18, NULL, NULL); | ||
38 | + codec_data = gst_buffer_new_memdup (data + 18, size - 18); | ||
39 | } | ||
40 | |||
41 | if (riff_audio_fmt) | ||
42 | -- | ||
43 | 2.30.2 | ||
44 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb index ca26290340..96dd6f7228 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb | |||
@@ -21,6 +21,13 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-go | |||
21 | file://0012-qtdemux-Check-for-invalid-atom-length-when-extractin.patch \ | 21 | file://0012-qtdemux-Check-for-invalid-atom-length-when-extractin.patch \ |
22 | file://0013-qtdemux-Add-size-check-for-parsing-SMI-SEQH-atom.patch \ | 22 | file://0013-qtdemux-Add-size-check-for-parsing-SMI-SEQH-atom.patch \ |
23 | file://0014-gdkpixbufdec-Check-if-initializing-the-video-info-ac.patch \ | 23 | file://0014-gdkpixbufdec-Check-if-initializing-the-video-info-ac.patch \ |
24 | file://0015-matroskademux-Only-unmap-GstMapInfo-in-WavPack-heade.patch \ | ||
25 | file://0016-matroskademux-Fix-off-by-one-when-parsing-multi-chan.patch \ | ||
26 | file://0017-matroskademux-Check-for-big-enough-WavPack-codec-pri.patch \ | ||
27 | file://0018-matroskademux-Don-t-take-data-out-of-an-empty-adapte.patch \ | ||
28 | file://0019-matroskademux-Skip-over-laces-directly-when-postproc.patch \ | ||
29 | file://0020-matroskademux-Skip-over-zero-sized-Xiph-stream-heade.patch \ | ||
30 | file://0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch \ | ||
24 | " | 31 | " |
25 | 32 | ||
26 | SRC_URI[sha256sum] = "9c1913f981900bd8867182639b20907b28ed78ef7a222cfbf2d8ba9dab992fa7" | 33 | SRC_URI[sha256sum] = "9c1913f981900bd8867182639b20907b28ed78ef7a222cfbf2d8ba9dab992fa7" |