summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-07-17 13:41:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-29 13:28:21 +0100
commit78d1a23bf3a2737429daa4ee1016b09b3b1494bb (patch)
treef6882a34d9f98cf2cb7a051ad5b42f68dbf70b58 /meta/recipes-extended
parent1b86653740722b1bd4133269b7efc67e85cf54ff (diff)
downloadpoky-78d1a23bf3a2737429daa4ee1016b09b3b1494bb.tar.gz
tar: remove an erroneous patch
This removed patch is a workaround for gcc-4.5 manifests buffer overflow with app-arch/tar-1.{22,23}, according to the information from https://bugs.gentoo.org/show_bug.cgi?id=317139. The problem with that patch is that it's only setting the magic field of the header while the original statement sets both the magic and the version field of the header. Because of this, all tar balls created by the tar package in OE will be treated as old V7 format tar balls. As a negative effect of this behaviour, the tar package in OE cannot handle device files correctly. This in turn leads to the udev cache failure in images like core-image-lsb-sdk. [YOCTO #4815] (From OE-Core master rev: 32210f73c7e9f24951306f462b25e66e1d11a6b8) (From OE-Core rev: 5c585a7a8c856802b79effc7f47ba3e44d7a489c) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/tar/tar-1.26/tar-1.26-fortifysourcessigabrt.patch36
-rw-r--r--meta/recipes-extended/tar/tar_1.26.bb1
2 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-extended/tar/tar-1.26/tar-1.26-fortifysourcessigabrt.patch b/meta/recipes-extended/tar/tar-1.26/tar-1.26-fortifysourcessigabrt.patch
deleted file mode 100644
index 6aef096896..0000000000
--- a/meta/recipes-extended/tar/tar-1.26/tar-1.26-fortifysourcessigabrt.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1port fedora patch for fortify sources sigabort. See
2https://qa.mandriva.com/show_bug.cgi?id=61419 for details.
3
4Upstream-Status: Pending
5
6Signed-off-by: Christopher Larson <chris_larson@mentor.com>
7Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
8
9---
10 src/create.c | 8 ++++----
11 1 file changed, 4 insertions(+), 4 deletions(-)
12
13--- tar-1.26.orig/src/create.c
14+++ tar-1.26/src/create.c
15@@ -562,8 +562,8 @@ write_gnu_long_link (struct tar_stat_inf
16 GNAME_TO_CHARS (tmpname, header->header.gname);
17 free (tmpname);
18
19- strcpy (header->buffer + offsetof (struct posix_header, magic),
20- OLDGNU_MAGIC);
21+ strncpy (header->buffer + offsetof (struct posix_header, magic),
22+ OLDGNU_MAGIC, sizeof(header->header.magic));
23 header->header.typeflag = type;
24 finish_header (st, header, -1);
25
26@@ -900,8 +900,8 @@ start_header (struct tar_stat_info *st)
27 case OLDGNU_FORMAT:
28 case GNU_FORMAT: /*FIXME?*/
29 /* Overwrite header->header.magic and header.version in one blow. */
30- strcpy (header->buffer + offsetof (struct posix_header, magic),
31- OLDGNU_MAGIC);
32+ strncpy (header->buffer + offsetof (struct posix_header, magic),
33+ OLDGNU_MAGIC, sizeof(header->header.magic));
34 break;
35
36 case POSIX_FORMAT:
diff --git a/meta/recipes-extended/tar/tar_1.26.bb b/meta/recipes-extended/tar/tar_1.26.bb
index d45c2b14ed..8b774e6821 100644
--- a/meta/recipes-extended/tar/tar_1.26.bb
+++ b/meta/recipes-extended/tar/tar_1.26.bb
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
6PR = "r5" 6PR = "r5"
7 7
8SRC_URI += "file://remove-gets.patch \ 8SRC_URI += "file://remove-gets.patch \
9 file://tar-1.26-fortifysourcessigabrt.patch\
10 " 9 "
11 10
12SRC_URI[md5sum] = "2cee42a2ff4f1cd4f9298eeeb2264519" 11SRC_URI[md5sum] = "2cee42a2ff4f1cd4f9298eeeb2264519"