netease-docs/Design/cppCheck/netease_voice-cppcheck-buil.../msc.a1

184 lines
15 KiB
XML

<?xml version="1.0"?>
<analyzerinfo checksum="3981648264">
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="406" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="407" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="408" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="409" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="416" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="417" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="variableScope" severity="style" msg="The scope of the variable &apos;errcode&apos; can be reduced." verbose="The scope of the variable &apos;errcode&apos; can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for &apos;i&apos; can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it&apos;s safe to move &apos;int i = 0;&apos; here\012 for (int n = 0; n &lt; 10; ++n) {\012 // it is possible but not safe to move &apos;int i = 0;&apos; here\012 do_something(&amp;i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level." cwe="398">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="185"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="411" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="412" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="413" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<error id="nullPointerRedundantCheck" severity="warning" msg="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." verbose="Either the condition &apos;!iathd&apos; is redundant or there is possible null pointer dereference: iathd." cwe="476">
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="414" info="Null pointer dereference"/>
<location file0="G:\SmartAudio\package\netease\netease_voice\src\msc.c" file="G:\SmartAudio\package\netease\netease_voice\src\msc.c" line="402" info="Assuming that condition &apos;!iathd&apos; is not redundant"/>
</error>
<FileInfo check="CheckUnusedFunctions">
<functiondecl functionName="printIatTime" lineNumber="81"/>
<functiondecl functionName="lockIAT" lineNumber="88"/>
<functiondecl functionName="unlockIAT" lineNumber="92"/>
<functiondecl functionName="Netease_MSP_Init" lineNumber="96"/>
<functiondecl functionName="Netease_MSP_Deinit" lineNumber="108"/>
<functiondecl functionName="Netease_IAT_thread" lineNumber="110"/>
<functiondecl functionName="Netease_IAT_end_session" lineNumber="175"/>
<functiondecl functionName="Netease_IAT_begin_session" lineNumber="184"/>
<functiondecl functionName="Netease_IAT_checkflag" lineNumber="218"/>
<functiondecl functionName="Netease_IAT_write" lineNumber="229"/>
<functiondecl functionName="IAT_session_create" lineNumber="321"/>
<functiondecl functionName="IAT_session_destroy" lineNumber="383"/>
<functiondecl functionName="Netease_IAT_Init" lineNumber="399"/>
<functiondecl functionName="Netease_IAT_DeInit" lineNumber="429"/>
<functiondecl functionName="printIatTime" lineNumber="81"/>
<functiondecl functionName="lockIAT" lineNumber="88"/>
<functiondecl functionName="unlockIAT" lineNumber="92"/>
<functiondecl functionName="Netease_MSP_Init" lineNumber="96"/>
<functiondecl functionName="Netease_MSP_Deinit" lineNumber="108"/>
<functiondecl functionName="Netease_IAT_thread" lineNumber="110"/>
<functiondecl functionName="Netease_IAT_end_session" lineNumber="175"/>
<functiondecl functionName="Netease_IAT_begin_session" lineNumber="184"/>
<functiondecl functionName="Netease_IAT_checkflag" lineNumber="218"/>
<functiondecl functionName="Netease_IAT_write" lineNumber="229"/>
<functiondecl functionName="IAT_session_create" lineNumber="321"/>
<functiondecl functionName="IAT_session_destroy" lineNumber="383"/>
<functiondecl functionName="Netease_IAT_Init" lineNumber="399"/>
<functiondecl functionName="Netease_IAT_DeInit" lineNumber="429"/>
<functioncall functionName="BaseLock"/>
<functioncall functionName="BaseUnlock"/>
<functioncall functionName="CMD_MSC_MSG_CONTROLLER_RECOGING"/>
<functioncall functionName="CMD_MSC_MSG_CONTROLLER_RECOG_ERROR"/>
<functioncall functionName="CMD_MSC_MSG_CONTROLLER_RECOG_SUCCESS"/>
<functioncall functionName="CMD_MSC_MSG_CONTROLLER_SESSION_BEGIN"/>
<functioncall functionName="EvpBase64EncodeNoAlign"/>
<functioncall functionName="IAT_STATUS_AUDIOIN"/>
<functioncall functionName="IAT_STATUS_FINISH"/>
<functioncall functionName="IAT_STATUS_GETRESULT"/>
<functioncall functionName="IAT_STATUS_INIT"/>
<functioncall functionName="IAT_session_create"/>
<functioncall functionName="IAT_session_destroy"/>
<functioncall functionName="MODULE_CONTROLLER"/>
<functioncall functionName="MODULE_VOICEENGINE"/>
<functioncall functionName="MSPLogin"/>
<functioncall functionName="MSPLogout"/>
<functioncall functionName="MSP_AUDIO_SAMPLE_CONTINUE"/>
<functioncall functionName="MSP_AUDIO_SAMPLE_FIRST"/>
<functioncall functionName="MSP_AUDIO_SAMPLE_LAST"/>
<functioncall functionName="NETEASE_ERROR_FAIL"/>
<functioncall functionName="NETEASE_SUCCESS"/>
<functioncall functionName="NULL"/>
<functioncall functionName="Netease_Dbus_Send_CMD"/>
<functioncall functionName="Netease_Dbus_Send_CMD_ERROR"/>
<functioncall functionName="Netease_IAT_thread"/>
<functioncall functionName="Netease_caltime"/>
<functioncall functionName="Netease_dbus_initargs"/>
<functioncall functionName="Netease_gettime_ms"/>
<functioncall functionName="QISRAudioWrite"/>
<functioncall functionName="QISRGetResult"/>
<functioncall functionName="QISRSessionBegin"/>
<functioncall functionName="QISRSessionEnd"/>
<functioncall functionName="Uuid"/>
<functioncall functionName="angle"/>
<functioncall functionName="audioWrite"/>
<functioncall functionName="audiobuf"/>
<functioncall functionName="audiolen"/>
<functioncall functionName="audiostate"/>
<functioncall functionName="break"/>
<functioncall functionName="buffer"/>
<functioncall functionName="buffer_add"/>
<functioncall functionName="buffer_reset"/>
<functioncall functionName="cdata"/>
<functioncall functionName="confirmParam"/>
<functioncall functionName="data"/>
<functioncall functionName="epstatus"/>
<functioncall functionName="errcode"/>
<functioncall functionName="error_exit"/>
<functioncall functionName="event"/>
<functioncall functionName="free"/>
<functioncall functionName="free_buffer"/>
<functioncall functionName="getResult"/>
<functioncall functionName="getSongInfo"/>
<functioncall functionName="getUuid"/>
<functioncall functionName="hd"/>
<functioncall functionName="iat"/>
<functioncall functionName="iathd"/>
<functioncall functionName="if"/>
<functioncall functionName="lockIAT"/>
<functioncall functionName="login_config"/>
<functioncall functionName="malloc"/>
<functioncall functionName="mutex_lock"/>
<functioncall functionName="n_debug"/>
<functioncall functionName="n_error"/>
<functioncall functionName="n_toast"/>
<functioncall functionName="native_event_create"/>
<functioncall functionName="native_event_destroy"/>
<functioncall functionName="native_event_set"/>
<functioncall functionName="native_event_wait"/>
<functioncall functionName="netease_audio_write"/>
<functioncall functionName="netease_get_result"/>
<functioncall functionName="netease_session_create"/>
<functioncall functionName="netease_session_destroy"/>
<functioncall functionName="new_buffer"/>
<functioncall functionName="offset"/>
<functioncall functionName="param"/>
<functioncall functionName="paramsbuf"/>
<functioncall functionName="printIatTime"/>
<functioncall functionName="pthread_create"/>
<functioncall functionName="pthread_join"/>
<functioncall functionName="pthread_mutex_init"/>
<functioncall functionName="pthread_mutex_lock"/>
<functioncall functionName="pthread_mutex_unlock"/>
<functioncall functionName="recType"/>
<functioncall functionName="rec_stat"/>
<functioncall functionName="recogstatus"/>
<functioncall functionName="ret"/>
<functioncall functionName="reterrcode"/>
<functioncall functionName="return"/>
<functioncall functionName="rlst"/>
<functioncall functionName="running"/>
<functioncall functionName="sessionCreate"/>
<functioncall functionName="sessionDestory"/>
<functioncall functionName="sessionId"/>
<functioncall functionName="session_begin_params"/>
<functioncall functionName="sizeof"/>
<functioncall functionName="sprintf"/>
<functioncall functionName="status"/>
<functioncall functionName="strlen"/>
<functioncall functionName="tid_result"/>
<functioncall functionName="time_usec"/>
<functioncall functionName="tmp"/>
<functioncall functionName="unlockIAT"/>
<functioncall functionName="unlock_exit"/>
<functioncall functionName="usleep"/>
<functioncall functionName="while"/>
</FileInfo>
</analyzerinfo>