Re: [PATCH 01/13] qemu: fix use-after-free when parsing NBD disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 28/02/2013 06:03, Eric Blake ha scritto:
> diff --git i/src/qemu/qemu_command.c w/src/qemu/qemu_command.c
> index 0a7d4ec..f8f3ade 100644
> --- i/src/qemu/qemu_command.c
> +++ w/src/qemu/qemu_command.c
> @@ -8832,11 +8832,11 @@ virDomainDefPtr qemuParseCommandLine(virCapsPtr
> qemuCaps,
>                      if (VIR_ALLOC(disk->hosts) < 0)
>                          goto no_memory;
>                      disk->nhosts = 1;
> -                    disk->hosts->name = host;
> +                    disk->hosts->name = disk->src;
> +                    disk->src = NULL;
>                      disk->hosts->port = strdup(port);
>                      if (!disk->hosts->port)
>                          goto no_memory;
> -                    disk->src = NULL;
>                      break;
>                  case VIR_DOMAIN_DISK_PROTOCOL_RBD:
>                      /* old-style CEPH_ARGS env variable is parsed later */
> 
> 

ACK

Paolo

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]