From 1b283ce3c13ca9586cbb1374417bd15cb2f599a1 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Mon, 25 Apr 2011 17:07:37 -0700 Subject: tar-1.17 (GPLv2) bugfix This fixes bug [YOCTO #982] (From OE-Core rev: 9346961f863b2e0d6489615fa976b002553123de) Signed-off-by: Nitin A Kamble Signed-off-by: Richard Purdie --- .../tar/tar-1.17/avoid_heap_overflow.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 meta/recipes-extended/tar/tar-1.17/avoid_heap_overflow.patch (limited to 'meta/recipes-extended/tar/tar-1.17') diff --git a/meta/recipes-extended/tar/tar-1.17/avoid_heap_overflow.patch b/meta/recipes-extended/tar/tar-1.17/avoid_heap_overflow.patch new file mode 100644 index 0000000000..b1b2de6b04 --- /dev/null +++ b/meta/recipes-extended/tar/tar-1.17/avoid_heap_overflow.patch @@ -0,0 +1,22 @@ +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. + +Nitin A Kamble 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) -- cgit v1.2.3-54-g00ecf