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 tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-hvm.xml
basic-pv.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-pv.xml
basic-pvh.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-pvh.xml
cpu-shares-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
cpu-shares-hvm.xml
efi-hvm.json libxl: Support specifying a custom firmware path 2023-03-10 11:01:42 -07:00
efi-hvm.xml libxl: Support specifying a custom firmware path 2023-03-10 11:01:42 -07:00
fullvirt-acpi-slic.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-acpi-slic.xml
fullvirt-cpuid-legacy-nest.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-cpuid-legacy-nest.xml
fullvirt-cpuid.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-cpuid.xml
max-eventchannels-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
max-eventchannels-hvm.xml
max-gntframes-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
max-gntframes-hvm.xml
moredevs-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
moredevs-hvm.xml xen: explicitly set hostdev driver.name at runtime, not in postparse 2024-01-07 23:59:00 -05:00
multiple-ip.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
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 tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
variable-clock-hvm.xml
vnuma-hvm-legacy-nest.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
vnuma-hvm-legacy-nest.xml
vnuma-hvm.json tests: Fix libxlxml2domconfigtest 2022-11-11 08:10:34 -07:00
vnuma-hvm.xml