qemu -snapshot
PATCH 1/1 qemu -snapshot
Buffer for second argument of realpath should be size PATH_MAX.
Patch by Sergey Vlasov in the attachment.
block.c renamed from block.c.alt-realpath +2 -2
@@ -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 ;