Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at chat-commands.c:470

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 35.35
Procedure: chat_commands_deinit
Trace: View
Modified: Wed Sep 2 11:31:30 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/core/chat-commands.c
   Enter chat_commands_deinit
 460 void chat_commands_deinit(void) 
 461 {
 462         command_unbind("server", (SIGNAL_FUNC) cmd_server);   /* Dangerous Function Cast (ID: 31.31) */
 463         command_unbind("server connect", (SIGNAL_FUNC) cmd_server_connect);   /* Dangerous Function Cast (ID: 30.30) */
 464         command_unbind("connect", (SIGNAL_FUNC) cmd_connect);   /* Dangerous Function Cast (ID: 29.29) */
 465         command_unbind("disconnect", (SIGNAL_FUNC) cmd_disconnect);   /* Dangerous Function Cast (ID: 28.28) */
 466         command_unbind("quit", (SIGNAL_FUNC) cmd_quit);   /* Dangerous Function Cast (ID: 39.39) */
 467         command_unbind("msg", (SIGNAL_FUNC) cmd_msg);   /* Dangerous Function Cast (ID: 38.38) */
 468         command_unbind("foreach", (SIGNAL_FUNC) cmd_foreach);   /* Dangerous Function Cast (ID: 37.37) */
 469         command_unbind("foreach server", (SIGNAL_FUNC) cmd_foreach_server);   /* Dangerous Function Cast (ID: 36.36) */
Wrong Number of Parameters470         command_unbind("foreach channel", (SIGNAL_FUNC) cmd_foreach_channel);     /* Dangerous Function Cast */
 471         command_unbind("foreach query", (SIGNAL_FUNC) cmd_foreach_query);   /* Dangerous Function Cast (ID: 34.34) */
 472  
 473         signal_remove("default command server", (SIGNAL_FUNC) sig_default_command_server);   /* Dangerous Function Cast (ID: 33.33) */
 474         signal_remove("server sendmsg", (SIGNAL_FUNC) sig_server_sendmsg);   /* Dangerous Function Cast (ID: 32.32) */
 475 




Change Warning 35.35 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: