rpms/libraw1394/F-9 libraw1394-fix-segfault-in-handle_arm_request.patch, NONE, 1.1 libraw1394.spec, 1.42, 1.43

Jarod Wilson jwilson at fedoraproject.org
Thu Nov 20 18:10:40 UTC 2008


Author: jwilson

Update of /cvs/pkgs/rpms/libraw1394/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32661

Modified Files:
	libraw1394.spec 
Added Files:
	libraw1394-fix-segfault-in-handle_arm_request.patch 
Log Message:
* Thu Nov 20 2008 Jarod Wilson <jarod at redhat.com> - 1.3.0-8
- Fix segfault in handle_arm_request


libraw1394-fix-segfault-in-handle_arm_request.patch:

--- NEW FILE libraw1394-fix-segfault-in-handle_arm_request.patch ---
diff -Naurp libraw1394-1.3.0/juju/raw1394.c libraw1394-1.3.0.fix/juju/raw1394.c
--- libraw1394-1.3.0/juju/raw1394.c	2008-11-20 13:09:40.415878853 -0500
+++ libraw1394-1.3.0.fix/juju/raw1394.c	2008-11-20 13:11:01.441816140 -0500
@@ -831,10 +831,12 @@ handle_arm_request(raw1394handle_t handl
 	}
 	rrb->request.generation = handle->reset.generation;
 	rrb->request.buffer_length = in_length;
+	rrb->request.buffer = rrb->data;
 	memcpy(rrb->request.buffer, request->data, in_length);
 
 	rrb->response.response_code = response.rcode;
 	rrb->response.buffer_length = response.length;
+	rrb->request.buffer = rrb->data + in_length;
 	memcpy(rrb->response.buffer,
 	       allocation->data + offset, response.length);
 


Index: libraw1394.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libraw1394/F-9/libraw1394.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- libraw1394.spec	17 Jun 2008 15:26:14 -0000	1.42
+++ libraw1394.spec	20 Nov 2008 18:10:09 -0000	1.43
@@ -1,7 +1,7 @@
 Summary:        Library providing low-level IEEE-1394 access
 Name:           libraw1394
 Version:        1.3.0
-Release:        7%{?dist}
+Release:        8%{?dist}
 License:        LGPLv2+
 Group:          System Environment/Libraries
 Source:         http://www.linux1394.org/dl/libraw1394-%{version}.tar.gz
@@ -15,6 +15,7 @@
 Patch2:         libraw1394-juju-bitfield-update.patch
 Patch3:         libraw1394-juju-munmap-correct-max_packet_size.patch
 Patch4:         libraw1394-memset-and-patch-up-leaks.patch
+Patch5:         libraw1394-fix-segfault-in-handle_arm_request.patch
 
 %description
 The libraw1394 library provides direct access to the IEEE-1394 bus through
@@ -36,6 +37,7 @@
 %patch2 -p1 -b .bitf
 %patch3 -p1 -b .munmap
 %patch4 -p1 -b .memset
+%patch5 -p1 -b .segv
 
 %build
 aclocal
@@ -78,6 +80,9 @@
 
 
 %changelog
+* Thu Nov 20 2008 Jarod Wilson <jarod at redhat.com> - 1.3.0-8
+- Fix segfault in handle_arm_request
+
 * Tue Jun 17 2008 Jarod Wilson <jwilson at redhat.com> - 1.3.0-7
 - Fully initialize data structures and plug dir leak. Resolves
   crashes when used with kino (Philippe Troin, #451727)




More information about the fedora-extras-commits mailing list