libvirt/src/cpu
Pavel Hrdina 4a4cff58ef cpu: fix possible crash in getModels
Commit 86a15a25 introduced a new cpu driver API 'getModels'. Public API
allow you to pass NULL for models to get only number of existing models.
However the new code will crash with segfault so we have to count with
the possibility that the user wants only the number.

There is also difference in order of the models gathered by this new API
as the old approach was inserting the elements to the end of the array
so we should use 'VIR_APPEND_ELEMENT'.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2014-12-03 19:17:05 +01:00
..
cpu_aarch64.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
cpu_aarch64.h AArch64: CPU Support for AArch64 (ARMv8 64bit). 2013-10-15 16:59:26 -04:00
cpu_arm.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
cpu_arm.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_generic.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
cpu_generic.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_map.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
cpu_map.h cpu: use typedefs for enums in "src/cpu/cpu_map.h" 2014-06-02 15:15:05 -06:00
cpu_map.xml PowerPC:Improve PVR handling to fall back to cpu generation. 2014-11-07 09:19:58 +01:00
cpu_powerpc.c cpu: fix possible crash in getModels 2014-12-03 19:17:05 +01:00
cpu_powerpc.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_ppc_data.h Add one file cpu_ppc_data.h to define CPU data for PPC 2012-10-17 10:03:34 +02:00
cpu_s390.c maint: avoid 'const fooPtr' in cpu files 2013-10-14 13:11:20 -06:00
cpu_s390.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_x86_data.h cpu: x86: Add internal CPUID features support and KVM feature bits 2013-11-08 09:44:42 +01:00
cpu_x86.c cpu: fix possible crash in getModels 2014-12-03 19:17:05 +01:00
cpu_x86.h cpu: Export few x86-specific APIs 2013-11-04 11:26:55 +01:00
cpu.c cpu-driver: Fix the cross driver function call 2014-12-02 10:18:55 -07:00
cpu.h cpu-driver: Fix the cross driver function call 2014-12-02 10:18:55 -07:00