Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at chat-completion.c:1191

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 755.755
Procedure: chat_completion_deinit
Trace: View
Modified: Wed Sep 2 11:36:38 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/fe-common/core/chat-completion.c
   Enter chat_completion_deinit
 1181         signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 718.718) */
 1182         signal_add("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed);   /* Dangerous Function Cast (ID: 717.717) */
 1183         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 716.716) */
 1184 }
 1185  
 1186 void chat_completion_deinit(void) 
 1187 {
 1188         while (global_lastmsgs != NULL)
 1189                 last_msg_destroy(&global_lastmsgs, global_lastmsgs->data);
 1190  
Wrong Number of Parameters1191         signal_remove("complete word", (SIGNAL_FUNC) sig_complete_word);     /* Dangerous Function Cast */
 1192         signal_remove("complete command msg", (SIGNAL_FUNC) sig_complete_msg);   /* Dangerous Function Cast (ID: 754.754) */
 1193         signal_remove("complete command query", (SIGNAL_FUNC) sig_complete_msg);   /* Dangerous Function Cast (ID: 753.753) */
 1194         signal_remove("complete command action", (SIGNAL_FUNC) sig_complete_msg);   /* Dangerous Function Cast (ID: 752.752) */
 1195         signal_remove("complete erase command msg", (SIGNAL_FUNC) sig_erase_complete_msg);   /* Dangerous Function Cast (ID: 751.751) */
 1196         signal_remove("complete erase command query", (SIGNAL_FUNC) sig_erase_complete_msg);   /* Dangerous Function Cast (ID: 750.750) */
 1197         signal_remove("complete erase command action", (SIGNAL_FUNC) sig_erase_complete_msg);   /* Dangerous Function Cast (ID: 749.749) */
 1198         signal_remove("complete command connect", (SIGNAL_FUNC) sig_complete_connect);   /* Dangerous Function Cast (ID: 748.748) */
 1199         signal_remove("complete command server", (SIGNAL_FUNC) sig_complete_connect);   /* Dangerous Function Cast (ID: 747.747) */
 1200         signal_remove("complete command disconnect", (SIGNAL_FUNC) sig_complete_tag);   /* Dangerous Function Cast (ID: 746.746) */
 1201         signal_remove("complete command reconnect", (SIGNAL_FUNC) sig_complete_tag);   /* Dangerous Function Cast (ID: 745.745) */




Change Warning 755.755 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: