diff options
author | Sona Sarmadi <sona.sarmadi@enea.com> | 2015-08-12 14:25:14 +0200 |
---|---|---|
committer | Sona Sarmadi <sona.sarmadi@enea.com> | 2015-08-12 14:25:14 +0200 |
commit | 03a7b1cc92344992b6048b6a0a5f0682de7ecc2a (patch) | |
tree | 90a4a52ad5a1aafe34f58345f26cca8c2602e72a /meta/recipes-extended/cpio/cpio_2.11.bb | |
parent | 856bb19cc85a075854f04eb24f280f22144d3d5a (diff) | |
download | poky-03a7b1cc92344992b6048b6a0a5f0682de7ecc2a.tar.gz |
cpio: Fix memory overrun on reading improperly created link records
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
http://git.savannah.gnu.org/cgit/cpio.git/commit/?id=746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d
* src/copyin.c (get_link_name): New function.
(list_file, copyin_link): use get_link_name
* tests/symlink-bad-length.at: New file.
* tests/symlink-long.at: New file.
* tests/Makefile.am: Add new files.
* tests/testsuite.at: Likewise.
See http://lists.gnu.org/archive/html/bug-cpio/2014-11/msg00007.html
Upstream-Status: Backport
Signed-off-by: Sergey Poznyakoff <gray@gnu.org.ua>
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Diffstat (limited to 'meta/recipes-extended/cpio/cpio_2.11.bb')
-rw-r--r-- | meta/recipes-extended/cpio/cpio_2.11.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-extended/cpio/cpio_2.11.bb b/meta/recipes-extended/cpio/cpio_2.11.bb index 5f88b30f1e..0220e8cd4a 100644 --- a/meta/recipes-extended/cpio/cpio_2.11.bb +++ b/meta/recipes-extended/cpio/cpio_2.11.bb | |||
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" | |||
6 | PR = "r4" | 6 | PR = "r4" |
7 | 7 | ||
8 | SRC_URI += "file://remove-gets.patch \ | 8 | SRC_URI += "file://remove-gets.patch \ |
9 | file://fix-memory-overrun.patch \ | ||
9 | " | 10 | " |
10 | 11 | ||
11 | SRC_URI[md5sum] = "1112bb6c45863468b5496ba128792f6c" | 12 | SRC_URI[md5sum] = "1112bb6c45863468b5496ba128792f6c" |