Buffer for second argument of realpath should be size PATH_MAX.
Patch by Sergey Vlasov in the attachment.
--- 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;
signature.asc
Description: Digital signature
_______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel