diff options
author | Yue Tao <Yue.Tao@windriver.com> | 2014-04-27 21:02:51 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-21 19:50:21 +0100 |
commit | c884618ff75b884c34ff8b0b7665c0af54ca1216 (patch) | |
tree | c61772f0a311d6c8b43a286071ab9b1d3fc7585d /meta/recipes-multimedia | |
parent | f52f366f5d078ac72011790d241c2c3cb6541755 (diff) | |
download | poky-c884618ff75b884c34ff8b0b7665c0af54ca1216.tar.gz |
gst-ffmpeg: fix for Security Advisory CVE-2013-0850
The decode_slice_header function in libavcodec/h264.c in FFmpeg before
1.1 allows remote attackers to have an unspecified impact via crafted
H.264 data, which triggers an out-of-bounds array access.
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0850
(From OE-Core rev: 69f3f0f94f4fd224e5a6b275207adf0539d085c3)
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-h264-correct-ref-count-check-and-limit-fix-out-of-ar.patch | 29 | ||||
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-h264-correct-ref-count-check-and-limit-fix-out-of-ar.patch b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-h264-correct-ref-count-check-and-limit-fix-out-of-ar.patch new file mode 100644 index 0000000000..d4f55b2696 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-h264-correct-ref-count-check-and-limit-fix-out-of-ar.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From d6c184880ee2e09fd68c0ae217173832cee5afc1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Niedermayer <michaelni@gmx.at> | ||
3 | Date: Sun, 18 Nov 2012 16:29:04 +0100 | ||
4 | Subject: [PATCH] h264: correct ref count check and limit, fix out of array | ||
5 | accesses. | ||
6 | |||
7 | Upstream-Status: Backport | ||
8 | |||
9 | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind | ||
10 | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||
11 | --- | ||
12 | libavcodec/h264.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/libavcodec/h264.c b/libavcodec/h264.c | ||
16 | index da43f1e..32cede5 100644 | ||
17 | --- a/gst-libs/ext/libav/libavcodec/h264.c | ||
18 | +++ b/gst-libs/ext/libav/libavcodec/h264.c | ||
19 | @@ -2870,6 +2870,9 @@ static int decode_slice_header(H264Conte | ||
20 | h->ref_count[0]= get_ue_golomb(&s->gb) + 1; | ||
21 | if(h->slice_type_nos==AV_PICTURE_TYPE_B) | ||
22 | h->ref_count[1]= get_ue_golomb(&s->gb) + 1; | ||
23 | + else | ||
24 | + // full range is spec-ok in this case, even for frames | ||
25 | + h->ref_count[1] = 1; | ||
26 | |||
27 | if(h->ref_count[0]-1 > 32-1 || h->ref_count[1]-1 > 32-1){ | ||
28 | av_log(h->s.avctx, AV_LOG_ERROR, "reference overflow\n"); | ||
29 | -- | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb b/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb index a0673fd668..ad85fa2e9f 100644 --- a/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb | |||
@@ -34,6 +34,7 @@ SRC_URI = "http://gstreamer.freedesktop.org/src/${BPN}/${BPN}-${PV}.tar.bz2 \ | |||
34 | file://0001-eamad-fix-out-of-array-accesses.patch \ | 34 | file://0001-eamad-fix-out-of-array-accesses.patch \ |
35 | file://0001-mjpegdec-check-SE.patch \ | 35 | file://0001-mjpegdec-check-SE.patch \ |
36 | file://0001-alac-fix-nb_samples-order-case.patch \ | 36 | file://0001-alac-fix-nb_samples-order-case.patch \ |
37 | file://0001-h264-correct-ref-count-check-and-limit-fix-out-of-ar.patch \ | ||
37 | " | 38 | " |
38 | 39 | ||
39 | SRC_URI[md5sum] = "7f5beacaf1312db2db30a026b36888c4" | 40 | SRC_URI[md5sum] = "7f5beacaf1312db2db30a026b36888c4" |