diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-04-25 17:08:31 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 09:52:24 +0100 |
commit | 9e917c6f48f3d6b1734e716b92506a1149c19b7e (patch) | |
tree | 1ca7d1bf6a4db82ad7289eca6a419ba206929ee6 /meta/recipes-extended/cpio/cpio-2.8 | |
parent | 9346961f863b2e0d6489615fa976b002553123de (diff) | |
download | openembedded-core-9e917c6f48f3d6b1734e716b92506a1149c19b7e.tar.gz openembedded-core-9e917c6f48f3d6b1734e716b92506a1149c19b7e.tar.bz2 openembedded-core-9e917c6f48f3d6b1734e716b92506a1149c19b7e.zip |
cpio-2.8 (GPLv2) bug fix
This fixes bug [YOCTO #982]
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/recipes-extended/cpio/cpio-2.8')
-rw-r--r-- | meta/recipes-extended/cpio/cpio-2.8/avoid_heap_overflow.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-extended/cpio/cpio-2.8/avoid_heap_overflow.patch b/meta/recipes-extended/cpio/cpio-2.8/avoid_heap_overflow.patch new file mode 100644 index 0000000000..cf068fad36 --- /dev/null +++ b/meta/recipes-extended/cpio/cpio-2.8/avoid_heap_overflow.patch @@ -0,0 +1,25 @@ +Upstream-Status="Inappropriate [bugfix: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-0624]" + +This patch avoids heap overflow reported by : +http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-0624 + +This is a clean patch for the GPLv2 tar recipe. + +the GPLv2 tar recipe patch is also applicable to this GPLv2 cpio +recipe, as they share code. + +Nitin A Kamble <nitin.a.kamble@intel.com> 2011/04/25 + +Index: tar-1.17/lib/rtapelib.c +=================================================================== +--- tar-1.17.orig/lib/rtapelib.c ++++ tar-1.17/lib/rtapelib.c +@@ -570,7 +570,7 @@ rmt_read__ (int handle, char *buffer, si + + sprintf (command_buffer, "R%lu\n", (unsigned long) length); + if (do_command (handle, command_buffer) == -1 +- || (status = get_status (handle)) == SAFE_READ_ERROR) ++ || ((status = get_status (handle)) == SAFE_READ_ERROR) || (status > length)) + return SAFE_READ_ERROR; + + for (counter = 0; counter < status; counter += rlen, buffer += rlen) |