[cmake-developers] cmake errors (not all) from http://scan.coverity.com

Bill Hoffman bill.hoffman at kitware.com
Thu Aug 24 13:02:34 EDT 2006


So, http://scan.coverity.com has scanned cmake.  Here are some of the errors found.
The creation of this xml seems to be manual, so this all I have right now.
I don't have time to look at them right away, but I wanted them on the list.

-Bill


<error>
<user>coolo</user>
<guid>23758</guid>
<cid>2617</cid>
<run>87</run>
<runname>KDE</runname>
<checker>USE_AFTER_FREE</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmxmlrpc/xmlrpc_curl_transport.c</file>
<function>rpcCreate</function>
<unmangled_function>rpcCreate</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Pointer "rpcP" freed by function "free"</description>
<line>592</line>
</event>
<event>
<description>Using freed pointer "rpcP"</description>
<line>594</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23757</guid>
<cid>2616</cid>
<run>87</run>
<runname>KDE</runname>
<checker>USE_AFTER_FREE</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmxmlrpc/xmlrpc_curl_transport.c</file>
<function>createCurlTransaction</function>
<unmangled_function>createCurlTransaction</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Pointer "curlTransactionP" freed by function "free"</description>
<line>411</line>
</event>
<event>
<description>Using freed pointer "curlTransactionP"</description>
<line>413</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23756</guid>
<cid>2615</cid>
<run>87</run>
<runname>KDE</runname>
<checker>USE_AFTER_FREE</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmxmlrpc/xmlrpc_curl_transport.c</file>
<function>createCurlHeaderList</function>
<unmangled_function>createCurlHeaderList</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Pointer "headerList" freed by function "free"</description>
<line>270</line>
</event>
<event>
<description>Using freed pointer "headerList"</description>
<line>272</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23746</guid>
<cid>2612</cid>
<run>87</run>
<runname>KDE</runname>
<checker>USE_AFTER_FREE</checker>
<file>base/src/kde/build/cmake-2.4.3/Source/kwsys/testSystemTools.cxx</file>
<function>_Z21CheckStringOperationsv</function>
<unmangled_function>CheckStringOperations()</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Pointer "cres2" freed by function "operator delete[] (void 
*)"</description>
<line>216</line>
</event>
<event>
<description>Double free of pointer "cres2" in call to "operator delete[] 
(void *)"</description>
<line>222</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23741</guid>
<cid>2612</cid>
<run>87</run>
<runname>KDE</runname>
<checker>USE_AFTER_FREE</checker>
<file>base/src/kde/build/cmake-2.4.3/Source/kwsys/testSystemTools.cxx</file>
<function>_Z21CheckStringOperationsv</function>
<unmangled_function>CheckStringOperations()</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Pointer "cres" freed by function "operator delete[] (void 
*)"</description>
<line>159</line>
</event>
<event>
<description>Double free of pointer "cres" in call to "operator delete[] (void 
*)"</description>
<line>165</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23737</guid>
<cid>2610</cid>
<run>87</run>
<runname>KDE</runname>
<checker>UNINIT</checker>
<file>base/src/kde/kdenetwork/krdc/vnc/hextile.c</file>
<function>HandleHextile32</function>
<unmangled_function>HandleHextile32</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Declared variable "bg" without initializer</description>
<line>37</line>
</event>
<event>
<description>Using uninitialized value "bg" in call to 
function "FillRectangle32"</description>
<line>69</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23736</guid>
<cid>2609</cid>
<run>87</run>
<runname>KDE</runname>
<checker>UNINIT</checker>
<file>base/src/kde/kdenetwork/krdc/vnc/hextile.c</file>
<function>HandleHextile16</function>
<unmangled_function>HandleHextile16</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Declared variable "bg" without initializer</description>
<line>37</line>
</event>
<event>
<description>Using uninitialized value "bg" in call to 
function "FillRectangle16"</description>
<line>69</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23734</guid>
<cid>2608</cid>
<run>87</run>
<runname>KDE</runname>
<checker>UNINIT</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmxmlrpc/xmlrpc_registry.c</file>
<function>system_methodHelp</function>
<unmangled_function>system_methodHelp</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Declared variable "help" without initializer</description>
<line>625</line>
</event>
<event>
<description>Using uninitialized value "help" in call to 
function "xmlrpc_INCREF"</description>
<line>649</line>
</event>
<comment>New status row inserted by system.</commment>
</error>


<error>
<user>coolo</user>
<guid>23733</guid>
<cid>2607</cid>
<run>87</run>
<runname>KDE</runname>
<checker>UNINIT</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmxmlrpc/xmlrpc_client.c</file>
<function>xmlrpc_client_call_params</function>
<unmangled_function>xmlrpc_client_call_params</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Declared variable "retval" without initializer</description>
<line>336</line>
</event>
<event>
<description>Using uninitialized value "retval"</description>
<line>361</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23732</guid>
<cid>2606</cid>
<run>87</run>
<runname>KDE</runname>
<checker>UNINIT</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmxmlrpc/xmlrpc_client.c</file>
<function>xmlrpc_client_call_server</function>
<unmangled_function>xmlrpc_client_call_server</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Declared variable "retval" without initializer</description>
<line>445</line>
</event>
<event>
<description>Using uninitialized value "retval"</description>
<line>469</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23685</guid>
<cid>2601</cid>
<run>87</run>
<runname>KDE</runname>
<checker>REVERSE_INULL</checker>
<file>base/src/kde/build/cmake-2.4.3/Source/cmMakefileTargetGenerator.cxx</file>
<function>_ZN25cmMakefileTargetGenerator20WriteCommonCodeRulesEv</function>
<unmangled_function>cmMakefileTargetGenerator::WriteCommonCodeRules()</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Dereferences pointer "(this)->FlagFileStream"</description>
<line>215</line>
</event>
<event>
<description>Pointer "(this)->FlagFileStream" dereferenced before NULL 
check</description>
<line>216</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23684</guid>
<cid>2600</cid>
<run>87</run>
<runname>KDE</runname>
<checker>REVERSE_INULL</checker>
<file>base/src/kde/build/cmake-2.4.3/Source/cmMakefileTargetGenerator.cxx</file>
<function>_ZN25cmMakefileTargetGenerator14CreateRuleFileEv</function>
<unmangled_function>cmMakefileTargetGenerator::CreateRuleFile()</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Dereferences pointer "(this)->BuildFileStream"</description>
<line>101</line>
</event>
<event>
<description>Pointer "(this)->BuildFileStream" dereferenced before NULL 
check</description>
<line>102</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23683</guid>
<cid>2599</cid>
<run>87</run>
<runname>KDE</runname>
<checker>REVERSE_INULL</checker>
<file>base/src/kde/build/cmake-2.4.3/Source/cmLocalGenerator.cxx</file>
<function>_ZN16cmLocalGenerator16AddLanguageFlagsERSsPKcS2_</function>
<unmangled_function>cmLocalGenerator::AddLanguageFlags(std::basic_string<char, 
std::char_traits<char>, std::allocator<char>>&, const char *, const char 
*)</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Dereferences pointer "lang"</description>
<line>1680</line>
</event>
<event>
<description>Pointer "lang" dereferenced before NULL check</description>
<line>1688</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

<error>
<user>coolo</user>
<guid>23482</guid>
<cid>2561</cid>
<run>87</run>
<runname>KDE</runname>
<checker>OVERRUN_STATIC</checker>
<file>base/src/kde/build/cmake-2.4.3/Utilities/cmtar/encode.c</file>
<function>th_finish</function>
<unmangled_function>th_finish</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Overrun of static array "&((t)->th_buf).magic" of size 6 bytes by 
passing it to a function which indexes it with argument "8" at byte position 
7</description>
<line>35</line>
</event>
<comment>New status row inserted by system.</commment>
</error>

 <error>
<user>coolo</user>
<guid>23169</guid>
<cid>2505</cid>
<run>87</run>
<runname>KDE</runname>
<checker>DEADCODE</checker>
<file>base/src/kde/build/cmake-2.4.3/Source/CTest/cmCTestCoverageHandler.cxx</file>
<function>_ZN22cmCTestCoverageHandler14ProcessHandlerEv</function>
<unmangled_function>cmCTestCoverageHandler::ProcessHandler()</unmangled_function>
<owner>admin</owner>
<status>UNINSPECTED</status>
<event>
<description>Cannot reach this line of code</description>
<line>344</line>
</event>
<event>
<description>On this path, the condition "gcovStyle != 0" could not be 
true</description>
<line>342</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>275</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>342</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>359</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>375</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>406</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>422</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>439</line>
</event>
<event>
<description>After this line, the value of "gcovStyle" is equal to 
0</description>
<line>456</line>
</event>
<event>
<description>Assigning "0" to "gcovStyle"</description>
<line>275</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>342</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>359</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>375</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>406</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>422</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>439</line>
</event>
<event>
<description>Conditional "gcovStyle != 0"</description>
<line>456</line>
</event>
<comment>New status row inserted by system.</commment>
</error> 




More information about the cmake-developers mailing list