Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 19.19
Procedure: chat_commands_init
Trace: View
Modified: Wed Sep 2 11:31:25 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_init
 433                 signal_emit("send command", 3, data, rec->server, rec);
 434                 list = g_slist_remove(list, list->data);
 435         }
 436 }
 437  
 438 void chat_commands_init(void) 
 439 {
 440         settings_add_str("misc", "quit_message", "leaving");
 441  
 442         command_bind("server", NULL, (SIGNAL_FUNC) cmd_server);   /* Dangerous Function Cast (ID: 21.21) */
Wrong Number of Parameters443         command_bind("server connect", NULL, (SIGNAL_FUNC) cmd_server_connect);     /* Dangerous Function Cast */
 444         command_bind("connect", NULL, (SIGNAL_FUNC) cmd_connect);   /* Dangerous Function Cast (ID: 17.17) */
 445         command_bind("disconnect", NULL, (SIGNAL_FUNC) cmd_disconnect);   /* Dangerous Function Cast (ID: 16.16) */
 446         command_bind("quit", NULL, (SIGNAL_FUNC) cmd_quit);   /* Dangerous Function Cast (ID: 27.27) */
 447         command_bind("msg", NULL, (SIGNAL_FUNC) cmd_msg);   /* Dangerous Function Cast (ID: 26.26) */
 448         command_bind("foreach", NULL, (SIGNAL_FUNC) cmd_foreach);   /* Dangerous Function Cast (ID: 25.25) */
 449         command_bind("foreach server", NULL, (SIGNAL_FUNC) cmd_foreach_server);   /* Dangerous Function Cast (ID: 24.24) */
 450         command_bind("foreach channel", NULL, (SIGNAL_FUNC) cmd_foreach_channel);   /* Dangerous Function Cast (ID: 23.23) */
 451         command_bind("foreach query", NULL, (SIGNAL_FUNC) cmd_foreach_query);   /* Dangerous Function Cast (ID: 22.22) */
 452  
 453         signal_add("default command server", (SIGNAL_FUNC) sig_default_command_server);   /* Dangerous Function Cast (ID: 20.20) */




Change Warning 19.19 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: