diff options
Diffstat (limited to 'app-emulation/qemu/files/qemu-2.7.0-CVE-2016-9105.patch')
-rw-r--r-- | app-emulation/qemu/files/qemu-2.7.0-CVE-2016-9105.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-emulation/qemu/files/qemu-2.7.0-CVE-2016-9105.patch b/app-emulation/qemu/files/qemu-2.7.0-CVE-2016-9105.patch new file mode 100644 index 000000000000..cddff97f7011 --- /dev/null +++ b/app-emulation/qemu/files/qemu-2.7.0-CVE-2016-9105.patch @@ -0,0 +1,25 @@ +From: Li Qiang <address@hidden> + +In v9fs_link dispatch function, it doesn't put the 'oldfidp' +fid object, this will make the 'oldfidp->ref' never reach to 0, +thus leading a memory leak issue. This patch fix this. + +Signed-off-by: Li Qiang <address@hidden> +--- + hw/9pfs/9p.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c +index 8b50bfb..29f8b7a 100644 +--- a/hw/9pfs/9p.c ++++ b/hw/9pfs/9p.c +@@ -2413,6 +2413,7 @@ static void v9fs_link(void *opaque) + if (!err) { + err = offset; + } ++ put_fid(pdu, oldfidp); + out: + put_fid(pdu, dfidp); + out_nofid: +-- +1.8.3.1 |