nixpkgs/pkgs/applications/virtualization/qemu/CVE-2016-9102.patch

13 lines
422 B
Diff
Raw Normal View History

diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index d938427..7557a7d 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -3261,6 +3261,7 @@
xattr_fidp->fs.xattr.flags = flags;
v9fs_string_init(&xattr_fidp->fs.xattr.name);
v9fs_string_copy(&xattr_fidp->fs.xattr.name, &name);
+ g_free(xattr_fidp->fs.xattr.value);
xattr_fidp->fs.xattr.value = g_malloc0(size);
err = offset;
put_fid(pdu, file_fidp);