qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5087] Fix more bugs in r5044
@ 2008-08-25 20:43 Blue Swirl
  2008-08-25 21:10 ` Igor Kovalenko
  2008-08-26 18:28 ` malc
  0 siblings, 2 replies; 4+ messages in thread
From: Blue Swirl @ 2008-08-25 20:43 UTC (permalink / raw)
  To: qemu-devel

Revision: 5087
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5087
Author:   blueswir1
Date:     2008-08-25 20:43:37 +0000 (Mon, 25 Aug 2008)

Log Message:
-----------
Fix more bugs in r5044

Modified Paths:
--------------
    trunk/audio/audio.c
    trunk/i386-dis.c

Modified: trunk/audio/audio.c
===================================================================
--- trunk/audio/audio.c	2008-08-25 20:03:28 UTC (rev 5086)
+++ trunk/audio/audio.c	2008-08-25 20:43:37 UTC (rev 5087)
@@ -205,7 +205,7 @@
     }
 
     len = strlen (s);
-    r = qemu_malloc (len + sizeof (qemu_prefix));
+    r = qemu_malloc (len + sizeof (qemu_prefix) + 1);
 
     if (r) {
         size_t i;

Modified: trunk/i386-dis.c
===================================================================
--- trunk/i386-dis.c	2008-08-25 20:03:28 UTC (rev 5086)
+++ trunk/i386-dis.c	2008-08-25 20:43:37 UTC (rev 5087)
@@ -2826,7 +2826,7 @@
 oappend (s)
      const char *s;
 {
-  pstrcpy (obufp, (size_t)(obufp - obuf), s);
+  pstrcpy (obufp, sizeof(obuf) - (size_t)(obufp - obuf), s);
   obufp += strlen (s);
 }
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-26 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 20:43 [Qemu-devel] [5087] Fix more bugs in r5044 Blue Swirl
2008-08-25 21:10 ` Igor Kovalenko
2008-08-26 17:09   ` Blue Swirl
2008-08-26 18:28 ` malc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).