mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
cb2a6ef8b5
Currently, an array of libxl_string_list (char **) or in other words, a triple char pointer is initialized. This is dereferenced to a char ** type and stored in serial_list, which is NULL at this point. There is an attempt to reference an element of this serial_list when making a call to libxlMakeChrdevStr which causes a segmentation fault. To fix this, we simply allocate an array of char * instead of libxl_string_list. This patch also adds testcases to extend coverage over both single serial and multiple serial cases. Signed-off-by: Rayhan Faizel <rayhan.faizel@gmail.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com> |
||
---|---|---|
.. | ||
basic-hvm.json | ||
basic-hvm.xml | ||
basic-pv.json | ||
basic-pv.xml | ||
basic-pvh.json | ||
basic-pvh.xml | ||
cpu-shares-hvm.json | ||
cpu-shares-hvm.xml | ||
efi-hvm.json | ||
efi-hvm.xml | ||
fullvirt-acpi-slic.json | ||
fullvirt-acpi-slic.xml | ||
fullvirt-cpuid-legacy-nest.json | ||
fullvirt-cpuid-legacy-nest.xml | ||
fullvirt-cpuid.json | ||
fullvirt-cpuid.xml | ||
max-eventchannels-hvm.json | ||
max-eventchannels-hvm.xml | ||
max-gntframes-hvm.json | ||
max-gntframes-hvm.xml | ||
moredevs-hvm.json | ||
moredevs-hvm.xml | ||
multiple-ip.json | ||
multiple-ip.xml | ||
multiple-serial.json | ||
multiple-serial.xml | ||
single-serial.json | ||
single-serial.xml | ||
variable-clock-hvm.json | ||
variable-clock-hvm.xml | ||
vnuma-hvm-legacy-nest.json | ||
vnuma-hvm-legacy-nest.xml | ||
vnuma-hvm.json | ||
vnuma-hvm.xml |