diff options
author | Li xin <lixin.fnst@cn.fujitsu.com> | 2015-01-22 14:41:20 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 15:36:51 +0000 |
commit | 86c77aca5b99208ec1ab13428f9824089d566197 (patch) | |
tree | 198b7a729808b26d90fcbe77500f853e0c41539f /meta/recipes-devtools/elfutils/elfutils-0.148 | |
parent | 6e02676d2c9d3d7f7dccf9dbd24825a7de19f602 (diff) | |
download | poky-86c77aca5b99208ec1ab13428f9824089d566197.tar.gz |
elfutils_0.148.bb: CVE-2014-9447 fix
Reference: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-9447
(From OE-Core rev: c992868a989926eac6c4b78a6bb9729bce54f2ed)
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.148')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.148/elf_begin.c-CVE-2014-9447-fix.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.148/elf_begin.c-CVE-2014-9447-fix.patch b/meta/recipes-devtools/elfutils/elfutils-0.148/elf_begin.c-CVE-2014-9447-fix.patch new file mode 100644 index 0000000000..84e8ddcca7 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.148/elf_begin.c-CVE-2014-9447-fix.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 323ca04a0c9189544075c19b49da67f6443a8950 Mon Sep 17 00:00:00 2001 | ||
2 | From: Li xin <lixin.fnst@cn.fujitsu.com> | ||
3 | Date: Wed, 21 Jan 2015 09:33:38 +0900 | ||
4 | Subject: [PATCH] elf_begin.c: CVE-2014-9447 fix | ||
5 | |||
6 | this patch is from: | ||
7 | https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=147018e729e7c22eeabf15b82d26e4bf68a0d18e | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | |||
11 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
12 | --- | ||
13 | libelf/elf_begin.c | 7 ++----- | ||
14 | 1 file changed, 2 insertions(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c | ||
17 | index e46add3..e83ba35 100644 | ||
18 | --- a/libelf/elf_begin.c | ||
19 | +++ b/libelf/elf_begin.c | ||
20 | @@ -736,11 +736,8 @@ read_long_names (Elf *elf) | ||
21 | break; | ||
22 | |||
23 | /* NUL-terminate the string. */ | ||
24 | - *runp = '\0'; | ||
25 | - | ||
26 | - /* Skip the NUL byte and the \012. */ | ||
27 | - runp += 2; | ||
28 | - | ||
29 | + *runp++ = '\0'; | ||
30 | + | ||
31 | /* A sanity check. Somebody might have generated invalid | ||
32 | archive. */ | ||
33 | if (runp >= newp + len) | ||
34 | -- | ||
35 | 1.8.4.2 | ||
36 | |||