qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5528] Fix a bad memcpy length (Bruce Rogers).


From: Andrzej Zaborowski
Subject: [Qemu-devel] [5528] Fix a bad memcpy length (Bruce Rogers).
Date: Sat, 25 Oct 2008 00:10:21 +0000

Revision: 5528
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5528
Author:   balrog
Date:     2008-10-25 00:10:20 +0000 (Sat, 25 Oct 2008)

Log Message:
-----------
Fix a bad memcpy length (Bruce Rogers).

Modified Paths:
--------------
    trunk/hw/bt-sdp.c

Modified: trunk/hw/bt-sdp.c
===================================================================
--- trunk/hw/bt-sdp.c   2008-10-24 22:10:31 UTC (rev 5527)
+++ trunk/hw/bt-sdp.c   2008-10-25 00:10:20 UTC (rev 5528)
@@ -254,7 +254,7 @@
     /* Perform the search */
     if (len < 7)
         return -SDP_INVALID_SYNTAX;
-    memcpy(&handle, req, 6);
+    memcpy(&handle, req, 4);
     req += 4;
     len -= 4;
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]