libvirt/tests/libxlxml2domconfigdata
Rayhan Faizel cb2a6ef8b5 libxl_conf: Fix config generation for multiple serial devices
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>
2024-10-02 16:06:50 +02:00
..
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 libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
multiple-serial.xml libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
single-serial.json libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
single-serial.xml libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
variable-clock-hvm.json
variable-clock-hvm.xml
vnuma-hvm-legacy-nest.json
vnuma-hvm-legacy-nest.xml
vnuma-hvm.json
vnuma-hvm.xml