qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [BUG] [PATCH] qemu -snapshot
@ 2007-02-08  8:00 Kirill A. Shutemov
  0 siblings, 0 replies; only message in thread
From: Kirill A. Shutemov @ 2007-02-08  8:00 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 107 bytes --]

Buffer for second argument of realpath should be size PATH_MAX.

Patch by Sergey Vlasov in the attachment.

[-- Attachment #1.2: qemu-0.9.0-alt-realpath.patch --]
[-- Type: text/plain, Size: 441 bytes --]

--- qemu-0.9.0/block.c.alt-realpath	2007-02-06 22:06:26 +0300
+++ qemu-0.9.0/block.c	2007-02-06 22:16:31 +0300
@@ -326,8 +326,8 @@ int bdrv_open2(BlockDriverState *bs, con
                BlockDriver *drv)
 {
     int ret, open_flags;
-    char tmp_filename[1024];
-    char backing_filename[1024];
+    char tmp_filename[PATH_MAX];
+    char backing_filename[PATH_MAX];
     
     bs->read_only = 0;
     bs->is_temporary = 0;

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-08  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-08  8:00 [Qemu-devel] [BUG] [PATCH] qemu -snapshot Kirill A. Shutemov

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).