Re: [PATCH] util: require command args to be non-NULL

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

 



On 12/17/18 2:20 PM, Daniel P. Berrangé wrote:
> The virCommand APIs do not expect to be given a NULL value for an arg
> name or value. Such a mistake can lead to execution of the wrong
> command, as the NULL may prematurely terminate the list of args.
> Detect this and report suitable error messages.
> 
> This identified a flaw in the storage test which was passing a NULL
> instead of the volume path. This flaw was then validated by an incorrect
> set of qemu-img args as expected data.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  src/util/vircommand.c                                | 10 ++++++++++
>  tests/storagevolxml2argvdata/qcow2-zerocapacity.argv |  2 +-
>  tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml |  1 +

ACK

And also now you push the other patch unchanged.

Michal

--
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]

  Powered by Linux