rpms/udev/F-11 udev-141-max_short.patch, NONE, 1.1 udev.spec, 1.277, 1.278

Harald Hoyer harald at fedoraproject.org
Mon Sep 14 17:02:58 UTC 2009


Author: harald

Update of /cvs/pkgs/rpms/udev/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5672

Modified Files:
	udev.spec 
Added Files:
	udev-141-max_short.patch 
Log Message:
* Mon Sep 14 2009 Harald Hoyer <harald at redhat.com> 141-7
- fix scsi_id segfault (bug #516920)


udev-141-max_short.patch:
 scsi_serial.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE udev-141-max_short.patch ---
diff -up udev-141/extras/scsi_id/scsi_serial.c.max_short udev-141/extras/scsi_id/scsi_serial.c
--- udev-141/extras/scsi_id/scsi_serial.c.max_short	2009-09-14 18:31:54.000000000 +0200
+++ udev-141/extras/scsi_id/scsi_serial.c	2009-09-14 18:31:57.000000000 +0200
@@ -587,7 +587,7 @@ static int check_fill_0x83_prespc3(struc
 		serial[j++] = hex_str[(page_83[4+i] & 0xf0) >> 4];
 		serial[j++] = hex_str[ page_83[4+i] & 0x0f];
 	}
-	strcpy(serial_short, serial);
+	strncpy(serial_short, serial, max_len-1);
 	return 0;
 }
 


Index: udev.spec
===================================================================
RCS file: /cvs/pkgs/rpms/udev/F-11/udev.spec,v
retrieving revision 1.277
retrieving revision 1.278
diff -u -p -r1.277 -r1.278
--- udev.spec	4 Aug 2009 09:27:17 -0000	1.277
+++ udev.spec	14 Sep 2009 17:02:57 -0000	1.278
@@ -6,7 +6,7 @@
 Summary: A userspace implementation of devfs
 Name: udev
 Version: 141
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: GPLv2
 Group: System Environment/Base
 Provides: udev-persistent = %{version}-%{release}
@@ -27,6 +27,7 @@ Patch5: udev.git-d6f0b22d574c6a5e5f3430b
 Patch6: udev.git-d3c8231e738dd286591c1becc2f327ed55ed89d1.patch
 Patch7: udev.git-f58a9099bb2b18f3f683615324a4382b95446305.patch
 Patch8: Prioritize-dmraid-formats-over-md-raid.patch
+Patch9: udev-141-max_short.patch
 
 Patch102: udev-118-sysconf.patch
 
@@ -110,6 +111,7 @@ dynamic library, which provides access t
 %patch6 -p1 
 %patch7 -p1 
 %patch8 -p1 
+%patch9 -p1 
 
 %patch102 -p1 -b .sysconf
 
@@ -412,6 +414,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Sep 14 2009 Harald Hoyer <harald at redhat.com> 141-7
+- fix scsi_id segfault (bug #516920)
+
 * Tue Aug 04 2009 Harald Hoyer <harald at redhat.com> 141-6
 - try to fix audio cdrom problems (bug #513495)
 




More information about the scm-commits mailing list