rpms/tar/devel tar-1.22-fortifysourcessigabrt.patch, NONE, 1.1 tar.spec, 1.81, 1.82
Ondrej Vasik
ovasik at fedoraproject.org
Thu Jul 9 16:50:26 UTC 2009
- Previous message (by thread): rpms/libccss/devel .cvsignore, 1.2, 1.3 libccss.spec, 1.4, 1.5 sources, 1.2, 1.3
- Next message (by thread): rpms/nbtk/devel .cvsignore, 1.2, 1.3 nbtk.spec, 1.3, 1.4 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ovasik
Update of /cvs/extras/rpms/tar/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20290
Modified Files:
tar.spec
Added Files:
tar-1.22-fortifysourcessigabrt.patch
Log Message:
Do not sigabrt with new gcc/glibc because of writing to struct members of gnutar header at once via strcpy
tar-1.22-fortifysourcessigabrt.patch:
--- NEW FILE tar-1.22-fortifysourcessigabrt.patch ---
diff -urNp tar-1.22-orig/src/create.c tar-1.22/src/create.c
--- tar-1.22-orig/src/create.c 2009-07-09 18:38:37.000000000 +0200
+++ tar-1.22/src/create.c 2009-07-09 18:43:44.000000000 +0200
@@ -578,7 +578,10 @@ write_gnu_long_link (struct tar_stat_inf
GNAME_TO_CHARS (tmpname, header->header.gname);
free (tmpname);
- strcpy (header->header.magic, OLDGNU_MAGIC);
+ /* OLDGNU_MAGIC is string with 7 chars + NULL */
+ strncpy (header->header.magic, OLDGNU_MAGIC, sizeof(header->header.magic));
+ strncpy (header->header.version, OLDGNU_MAGIC+sizeof(header->header.magic),
+ sizeof(header->header.version));
header->header.typeflag = type;
finish_header (st, header, -1);
@@ -908,9 +911,13 @@ start_header (struct tar_stat_info *st)
break;
case OLDGNU_FORMAT:
- case GNU_FORMAT: /*FIXME?*/
- /* Overwrite header->header.magic and header.version in one blow. */
- strcpy (header->header.magic, OLDGNU_MAGIC);
+ case GNU_FORMAT:
+ /* OLDGNU_MAGIC is string with 7 chars + NULL */
+ strncpy (header->header.magic, OLDGNU_MAGIC,
+ sizeof(header->header.magic));
+ strncpy (header->header.version,
+ OLDGNU_MAGIC+sizeof(header->header.magic),
+ sizeof(header->header.version));
break;
case POSIX_FORMAT:
Index: tar.spec
===================================================================
RCS file: /cvs/extras/rpms/tar/devel/tar.spec,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -p -r1.81 -r1.82
--- tar.spec 25 Jun 2009 20:04:41 -0000 1.81
+++ tar.spec 9 Jul 2009 16:50:25 -0000 1.82
@@ -16,6 +16,7 @@ Patch4: tar-1.19-xattrs-conf.patch
Patch5: tar-1.17-wildcards.patch
Patch6: tar-1.22-atime-rofs.patch
Patch7: tar-1.22-shortreadbuffer.patch
+Patch8: tar-1.22-fortifysourcessigabrt.patch
Prereq: info
BuildRequires: autoconf automake gzip texinfo gettext libacl-devel libselinux-devel gawk rsh
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -43,6 +44,7 @@ the rmt package.
%patch5 -p1 -b .wildcards
%patch6 -p1 -b .rofs
%patch7 -p1 -b .shortread
+%patch8 -p1 -b .headerblackmagic
%build
%configure --bindir=/bin --libexecdir=/sbin
@@ -96,6 +98,8 @@ fi
* Thu Jun 25 2009 Ondrej Vasik <ovasik at redhat.com> 2:1.22-4
- Report record size only if the archive refers to a device
(#487760)
+- Do not sigabrt with new gcc/glibc because of writing to
+ struct members of gnutar header at once via strcpy
* Fri May 15 2009 Ondrej Vasik <ovasik at redhat.com> 2:1.22-3
- ignore errors from setting utime() for source file
- Previous message (by thread): rpms/libccss/devel .cvsignore, 1.2, 1.3 libccss.spec, 1.4, 1.5 sources, 1.2, 1.3
- Next message (by thread): rpms/nbtk/devel .cvsignore, 1.2, 1.3 nbtk.spec, 1.3, 1.4 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list