libvirt/tests
John Ferlan 7eb56dcd9e tests: Resolve possible overrun
Coverity noted that each of the fmemopen called used the strlen value
in order to allocate space, but that neglected space for terminating
null string. So just add 1 to the strlen.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2018-09-24 08:50:02 -04:00
..
bhyveargv2xmldata bhyve: add tests for wiring memory 2018-05-13 13:38:31 +04:00
bhyvexml2argvdata bhyve: tests: Add missing data files 2018-06-08 21:53:36 +04:00
bhyvexml2xmloutdata bhyve: add tests for wiring memory 2018-05-13 13:38:31 +04:00
capabilityschemadata tests: Add RISC-V architectures 2018-08-24 13:23:36 +02:00
commanddata
cputestdata cpu_map: Add features for Icelake CPUs 2018-09-19 14:05:59 +02:00
domaincapsschemadata tests: domaincaps: Add QEMU 3.0 for s390x 2018-09-20 16:24:58 -04:00
domainconfdata
domainschemadata
domainsnapshotxml2xmlin
domainsnapshotxml2xmlout
fchostdata/fc_host
genericxml2xmlindata conf: Add support for memorytune XML processing for resctrl MBA 2018-08-13 14:19:41 -04:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: check CPU features handling in libxl driver 2018-04-17 21:15:27 -06:00
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata schema: Add missing block data for nodedev 2018-05-25 09:36:42 -04:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemuargv2xmldata qemu: fix default machine for argv -> xml convertor 2018-08-28 11:49:01 +01:00
qemublocktestdata/xml2json qemu: block: Add support for RBD authentication for blockdev 2018-07-10 13:37:51 +02:00
qemucapabilitiesdata qemu: Drop QEMU_CAPS_DEVICE_SCSI_GENERIC 2018-09-21 16:50:46 +02:00
qemucaps2xmloutdata qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
qemuhotplugtestcpus
qemuhotplugtestdevices
qemuhotplugtestdomains
qemumemlockdata
qemumigparamsdata Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
qemumonitorjsondata tests: add testcase for s390 query-cpus-fast 2018-04-17 12:45:26 -04:00
qemustatusxml2xmldata qemu: domain: Add field for storing node name for copy-on-read 2018-08-21 15:46:06 +02:00
qemuxml2argvdata conf: correct false boot order error during domain parse 2018-09-12 11:09:53 -04:00
qemuxml2startupxmloutdata tests: drop 'drive' from qemuxml2startup tests 2018-09-12 14:43:03 +02:00
qemuxml2xmloutdata conf: correct false boot order error during domain parse 2018-09-12 11:09:53 -04:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
sexpr2xmldata conf: introduce virDomainDefBootOrderPostParse 2018-05-29 10:22:08 +02:00
storagepoolschemadata
storagepoolxml2xmlin storage: Introduce iscsi_direct pool type 2018-08-06 12:23:55 +02:00
storagepoolxml2xmlout storage: Introduce iscsi_direct pool type 2018-08-06 12:23:55 +02:00
storagevolschemadata schema: Add physical sizing element for storagevol grammar 2018-05-25 09:32:37 -04:00
storagevolxml2argvdata storage: Allow inputvol to be encrypted 2018-09-12 07:24:04 -04:00
storagevolxml2xmlin storage: Allow inputvol to be encrypted 2018-09-12 07:24:04 -04:00
storagevolxml2xmlout storage: Disallow create/resize of qcow2 encrypted images 2018-06-26 14:02:43 -04:00
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata conf: Introduce RDT monitor host capability 2018-09-20 13:06:02 -04:00
vircgroupdata
virconfdata
virfilecachedata tests: add virfilecachetest 2017-07-26 15:33:45 +02:00
virfiledata
virhostcpudata tests: Add linux-high-ids test 2018-08-14 15:52:35 +02:00
virjsondata
virmacmaptestdata Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
virnetdaemondata
virnetdevtestdata/sys/class/net
virnwfilterbindingxml2xmldata conf: add support for parsing/formatting virNWFilterBindingDefPtr 2018-06-26 11:22:07 +01:00
virpcitestdata
virresctrldata conf: Add memory bandwidth allocation capability of host 2018-08-13 14:19:41 -04:00
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata vmx: convert cpuid.coresPerSocket for CPU topology 2018-04-20 09:09:29 +02:00
xlconfigdata tests: add test case for CPUID in xenconfig driver 2018-04-17 21:15:27 -06:00
xmconfigdata tests: xmconfigtest: add tests for cmdline formating 2018-06-04 20:59:16 -06:00
xml2sexprdata
xml2vmxdata vmx: write cpuid.coresPerSocket back from CPU topology 2018-04-20 09:11:01 +02:00
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c bhyve: add tests for wiring memory 2018-05-13 13:38:31 +04:00
bhyvexml2argvmock.c
bhyvexml2argvtest.c bhyve: Add CPU topology support 2018-06-07 19:26:26 +04:00
bhyvexml2xmltest.c bhyve: add tests for wiring memory 2018-05-13 13:38:31 +04:00
check-file-access.pl check-file-access: Allow specifying action 2018-08-15 10:15:29 +02:00
commandhelper.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
commandtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
cputest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
domaincapsmock.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
domaincapstest.c tests: domaincaps: Add QEMU 3.0 for s390x 2018-09-20 16:24:58 -04:00
domainconftest.c
domainsnapshotxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
esxutilstest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
eventtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
fchosttest.c
fdstreamtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
file_access_whitelist.txt check-file-access: Allow specifying action 2018-08-15 10:15:29 +02:00
genericxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
group-qemu-caps.pl syntax-check: pass srcdir to group-qemu-caps.pl 2018-04-26 13:39:10 +02:00
interfacexml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
libvirtd-fail Forget last daemon/ dir artefacts 2018-07-27 15:44:38 +02:00
libvirtd-pool
libxlxml2domconfigtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
lxcconf2xmltest.c
lxcxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
Makefile.am tests: Follow up on qemucaps2xmldata rename 2018-09-17 17:03:56 +02:00
metadatatest.c tests: initialize some variables 2018-05-30 15:54:58 +02:00
networkxml2conftest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
networkxml2firewalltest.c
networkxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
networkxml2xmlupdatetest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
nodedevxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
nsslinktest.c
nssmock.c tests: Fix mode_t usage with va_arg() 2018-05-03 18:23:30 +02:00
nsstest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c nwfilter: remove virNWFilterHashTable typedefs entirely 2018-05-03 17:00:57 +01:00
nwfilterxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
objecteventtest.c tests: initialize some variables 2018-05-30 15:54:58 +02:00
objectlocking.ml
oomtrace.pl
openvzutilstest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
qemuargv2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
qemublocktest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
qemucapabilitiestest.c tests: Add capabilities data for QEMU 3.0.0 on s390x 2018-09-20 16:24:58 -04:00
qemucaps2xmlmock.c
qemucaps2xmltest.c qemu: Expect a single binary in virQEMUCapsInitGuest() 2018-09-21 15:53:50 +02:00
qemucapsfixreplies tests: Fix qemucapsfixreplies 2018-06-19 14:01:14 +02:00
qemucapsprobe.c
qemucapsprobemock.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
qemucommandutiltest.c Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
qemucpumock.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
qemuhotplugtest.c qemu: hotplug: consolidate media change code paths 2018-08-21 15:46:06 +02:00
qemumemlocktest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
qemumigparamstest.c Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
qemumonitorjsontest.c tests: pass ULLONG_MAX to qemuMonitorJSONGetBalloonInfo 2018-09-04 10:19:23 +02:00
qemumonitortestutils.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
qemumonitortestutils.h tests: add qemumonitorjson tests for query-cpus-fast 2018-04-17 12:45:26 -04:00
qemuxml2argvmock.c tests: fix incorrect indentation in function body by checking first line 2018-09-17 13:29:01 +02:00
qemuxml2argvtest.c qemu: Drop QEMU_CAPS_DEVICE_SCSI_GENERIC 2018-09-21 16:50:46 +02:00
qemuxml2xmltest.c qemu: Drop QEMU_CAPS_DEVICE_SCSI_GENERIC 2018-09-21 16:50:46 +02:00
scsihosttest.c
seclabeltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
secretxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
securityselinuxhelper.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
securityselinuxlabeltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
securityselinuxtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
sexpr2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
shunloadhelper.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
shunloadtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
sockettest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
ssh.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
storagebackendsheepdogtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
storagepoolxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
storagevolxml2argvtest.c storage: Allow inputvol to be encrypted 2018-09-12 07:24:04 -04:00
storagevolxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
sysinfotest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
test-lib.sh
test-wrap-argv.pl
testutils.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
testutils.h internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
testutilshostcpus.h
testutilslxc.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
testutilslxc.h
testutilsqemu.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
testutilsqemu.h tests: qemu: Add helper code to lookup latest capability file 2018-04-19 11:20:34 +02:00
testutilsqemuschema.c tests: qemuschema: Add line break to debug message 2018-07-13 14:15:59 +02:00
testutilsqemuschema.h tests: qemu: Use qmp schema data from the qemucapabilities test 2018-07-10 13:37:50 +02:00
testutilsxen.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
testutilsxen.h
utiltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vboxsnapshotxmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
viralloctest.c
viratomictest.c
virauthconfigtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virbitmaptest.c
virbuftest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vircaps2xmltest.c conf: Introduce RDT monitor host capability 2018-09-20 13:06:02 -04:00
vircapstest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vircgroupmock.c tests: Resolve possible overrun 2018-09-24 08:50:02 -04:00
vircgrouptest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virconftest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vircryptotest.c src: Drop most of #ifdef WITH_GNUTLS 2018-06-05 14:32:36 +02:00
virdbusmock.c
virdbustest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virdeterministichashmock.c
virdrivermoduletest.c driver: add option to make missing drivers a fatal problem 2018-04-24 17:01:48 +01:00
virendiantest.c
virfilecachemock.c
virfilecachetest.c src: Drop most of #ifdef WITH_GNUTLS 2018-06-05 14:32:36 +02:00
virfiletest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virfilewrapper.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virfilewrapper.h
virfirewalltest.c
virhashdata.h
virhashtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virhostcpumock.c
virhostcputest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virhostdevtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
viridentitytest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
viriscsitest.c viriscsitest: Extend virISCSIConnectionLogin test 2018-07-25 07:11:13 +02:00
virjsontest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virkeycodetest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virkeyfiletest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virkmodtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virlockspacetest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virlogtest.c
virmacmaptest.c Revert "m4: Introduce STABLE_ORDERING_JANSSON" 2018-08-13 15:50:00 +02:00
virmock.h src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virmocklibxl.c Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
virnetdaemonmock.c
virnetdaemontest.c Revert "Switch from yajl to Jansson" 2018-08-13 15:50:01 +02:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c
virnetdevmock.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnetdevtest.c
virnetmessagetest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnetserverclientmock.c
virnetserverclienttest.c src: Drop most of #ifdef WITH_GNUTLS 2018-06-05 14:32:36 +02:00
virnetsockettest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnettlscontexttest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnettlshelpers.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnettlshelpers.h
virnettlssessiontest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnumamock.c virNumaGetHugePageInfo: Return page_avail and page_free as ULL 2018-04-24 11:02:28 +02:00
virnwfilterbindingxml2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virpcimock.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virpcitest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virpolkittest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virportallocatormock.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virportallocatortest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virrandommock.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
virresctrltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virrotatingfiletest.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
virschematest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virscsitest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virstoragetest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virstorageutiltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virstringtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virsystemdtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virt-aa-helper-test
virt-admin-self-test
virtestmock.c virtestmock: Track action 2018-08-15 10:16:16 +02:00
virtimetest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virtypedparamtest.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
viruritest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virusbmock.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virusbtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vmwarevertest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vmx2xmltest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
vshtabletest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
xlconfigtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
xmconfigtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
xml2sexprtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
xml2vmxtest.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00