diff options
author | Fahad Usman <fahad_usman@mentor.com> | 2012-12-12 18:01:32 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-13 15:18:45 +0000 |
commit | 5693f3e15850cdb05bafb178d92df1aa8e196fe9 (patch) | |
tree | 7660abd24acc7377ef9bfd2bccf188d8b32a36e7 /meta/recipes-extended/tar/tar-1.26 | |
parent | db07a94e0fe400390e3bbe49a5be10aff1ea3619 (diff) | |
download | poky-5693f3e15850cdb05bafb178d92df1aa8e196fe9.tar.gz |
tar: apply fedora patch for fortify sources sigabort
See https://qa.mandriva.com/show_bug.cgi?id=61419 for details.
(From OE-Core rev: 648cda68def82fa12b3af599c06caecdc7568668)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
the patch was imported from meta-mentor layer on yoctoproject git server
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor as of commit id
333d2e0510a1e052cb83a6f8beed6d8bcea59b2c
Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/tar/tar-1.26')
-rw-r--r-- | meta/recipes-extended/tar/tar-1.26/tar-1.26-fortifysourcessigabrt.patch | 36 |
1 files changed, 36 insertions, 0 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 new file mode 100644 index 0000000000..6aef096896 --- /dev/null +++ b/meta/recipes-extended/tar/tar-1.26/tar-1.26-fortifysourcessigabrt.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | port fedora patch for fortify sources sigabort. See | ||
2 | https://qa.mandriva.com/show_bug.cgi?id=61419 for details. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
7 | Signed-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: | ||