cppcheck analysis of libvirt_0.9.0-1.dsc
- ./gnulib/lib/alloca.c:104 [error] - Dangerous assignment - function parameter takes the address of a local auto-variable. Local auto-variables are reserved from the stack. And the stack is freed when the function ends. So the pointer to a local variable is invalid after the function ends.
- ./gnulib/lib/getaddrinfo.c:334 [error] - Memory leak: storage
- ./gnulib/lib/getaddrinfo.c:335 [error] - Memory leak: storage
- ./gnulib/tests/test-getdelim.c:50 [error] - Resource leak: f
- ./gnulib/tests/test-getline.c:50 [error] - Resource leak: f
- ./gnulib/tests/test-setlocale1.c:60 [error] - Memory leak: name1
- ./gnulib/tests/test-setlocale1.c:60 [error] - Memory leak: name2
- ./gnulib/tests/test-strnlen.c:69 [error] - Memory leak: page_boundary
- ./src/lxc/lxc_driver.c:2417 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/nwfilter/nwfilter_gentech_driver.c:669 [error] - Possible null pointer dereference: insts
- ./src/phyp/phyp_driver.c:1243 [error] - Memory leak: managed_system
- ./src/storage/parthelper.c:176 [error] - Memory leak: canonical_path
- ./src/storage/storage_backend_fs.c:414 [error] - Memory leak: options
- ./src/util/dnsmasq.c:205 [error] - Resource leak: f
- ./src/util/iohelper.c:138 [error] - Resource leak: fd
- ./tests/cputest.c:177 [error] - Uninitialized variable: expected
- ./tests/interfacexml2xmltest.c:24 [error] - Uninitialized variable: xmlData
- ./tests/networkxml2xmltest.c:24 [error] - Uninitialized variable: inXmlData
- ./tests/networkxml2xmltest.c:26 [error] - Uninitialized variable: outXmlData
- ./tests/nodedevxml2xmltest.c:24 [error] - Uninitialized variable: xmlData
- ./tests/nwfilterxml2xmltest.c:29 [error] - Uninitialized variable: inXmlData
- ./tests/nwfilterxml2xmltest.c:31 [error] - Uninitialized variable: outXmlData
- ./tests/qemuargv2xmltest.c:42 [error] - Uninitialized variable: xmlData
- ./tests/qemuargv2xmltest.c:44 [error] - Uninitialized variable: cmdData
- ./tests/qemuhelptest.c:45 [error] - Uninitialized variable: helpStr
- ./tests/qemuxml2argvtest.c:36 [error] - Uninitialized variable: argvData
- ./tests/qemuxml2xmltest.c:27 [error] - Uninitialized variable: inXmlData
- ./tests/qemuxml2xmltest.c:29 [error] - Uninitialized variable: outXmlData
- ./tests/sexpr2xmltest.c:27 [error] - Uninitialized variable: xmlData
- ./tests/sexpr2xmltest.c:28 [error] - Uninitialized variable: sexprData
- ./tests/storagepoolxml2xmltest.c:24 [error] - Uninitialized variable: inXmlData
- ./tests/storagepoolxml2xmltest.c:26 [error] - Uninitialized variable: outXmlData
- ./tests/storagevolxml2xmltest.c:26 [error] - Uninitialized variable: poolXmlData
- ./tests/storagevolxml2xmltest.c:28 [error] - Uninitialized variable: inXmlData
- ./tests/storagevolxml2xmltest.c:30 [error] - Uninitialized variable: outXmlData
- ./tests/virshtest.c:53 [error] - Uninitialized variable: actualData
- ./tests/virshtest.c:74 [error] - Uninitialized variable: expectData
- ./tests/vmx2xmltest.c:77 [error] - Uninitialized variable: vmxData
- ./tests/vmx2xmltest.c:78 [error] - Uninitialized variable: xmlData
- ./tests/xencapstest.c:24 [error] - Uninitialized variable: xmlData
- ./tests/xmconfigtest.c:50 [error] - Uninitialized variable: xmlData
- ./tests/xmconfigtest.c:51 [error] - Uninitialized variable: xmcfgData
- ./tests/xmconfigtest.c:52 [error] - Uninitialized variable: gotxmcfgData
- ./tests/xmconfigtest.c:105 [error] - Uninitialized variable: xmlData
- ./tests/xmconfigtest.c:106 [error] - Uninitialized variable: xmcfgData
- ./tests/xml2sexprtest.c:28 [error] - Uninitialized variable: xmlData
- ./tests/xml2sexprtest.c:29 [error] - Uninitialized variable: sexprData
- ./tests/xml2vmxtest.c:77 [error] - Uninitialized variable: xmlData
- ./tests/xml2vmxtest.c:78 [error] - Uninitialized variable: vmxData
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sun, 17 Apr 2011 06:58:17 +0000, based on results by cppcheck 1.46