diff options
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-eamad-fix-out-of-array-accesses.patch')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-eamad-fix-out-of-array-accesses.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-eamad-fix-out-of-array-accesses.patch b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-eamad-fix-out-of-array-accesses.patch new file mode 100644 index 0000000000..f45e3fd59d --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-eamad-fix-out-of-array-accesses.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 63ac64864c6e0e84355aa3caa5b92208997a9a8d Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Niedermayer <michaelni@gmx.at> | ||
3 | Date: Sat, 17 Nov 2012 16:26:55 +0100 | ||
4 | Subject: [PATCH] eamad: fix out of array accesses | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Commit 63ac64864c6e0e84355aa3caa5b92208997a9a8d release/1.1 | ||
9 | |||
10 | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind | ||
11 | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||
12 | --- | ||
13 | libavcodec/eamad.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c | ||
17 | index 2805195..e38650e 100644 | ||
18 | --- a/gst-libs/ext/libav/libavcodec/eamad.c | ||
19 | +++ b/gst-libs/ext/libav/libavcodec/eamad.c | ||
20 | @@ -237,7 +237,7 @@ static int decode_frame(AVCodecContext *avctx, | ||
21 | int chunk_type; | ||
22 | int inter; | ||
23 | |||
24 | - if (buf_size < 17) { | ||
25 | + if (buf_size < 26) { | ||
26 | av_log(avctx, AV_LOG_ERROR, "Input buffer too small\n"); | ||
27 | *data_size = 0; | ||
28 | return -1; | ||
29 | -- | ||