Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-chat.c:817

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 583.583
Procedure: dcc_chat_init
Trace: View
Modified: Wed Sep 2 11:35:24 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/irc/dcc/dcc-chat.c
   Enter dcc_chat_init
 807         g_free(params);
 808 }
 809  
 810 void dcc_chat_init(void) 
 811 {
 812         dcc_register_type("CHAT");
 813         settings_add_bool("dcc", "dcc_mirc_ctcp", FALSE);
 814         settings_add_str("dcc", "dcc_autochat_masks", "");
 815  
 816         command_bind("msg", NULL, (SIGNAL_FUNC) cmd_msg);   /* Dangerous Function Cast (ID: 586.586) */
Wrong Number of Parameters817         command_bind("me", NULL, (SIGNAL_FUNC) cmd_me);     /* Dangerous Function Cast */
 818         command_bind("action", NULL, (SIGNAL_FUNC) cmd_action);   /* Dangerous Function Cast (ID: 582.582) */
 819         command_bind("ctcp", NULL, (SIGNAL_FUNC) cmd_ctcp);   /* Dangerous Function Cast (ID: 581.581) */
 820         command_bind("dcc chat", NULL, (SIGNAL_FUNC) cmd_dcc_chat);   /* Dangerous Function Cast (ID: 584.584) */
 821         command_set_options("dcc chat", "passive");
 822         command_bind("mircdcc", NULL, (SIGNAL_FUNC) cmd_mircdcc);   /* Dangerous Function Cast (ID: 585.585) */
 823         command_bind("dcc close", NULL, (SIGNAL_FUNC) cmd_dcc_close);   /* Dangerous Function Cast (ID: 594.594) */
 824         command_bind("whois", NULL, (SIGNAL_FUNC) cmd_whois);   /* Dangerous Function Cast (ID: 593.593) */
 825         signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 592.592) */
 826         signal_add("ctcp msg dcc chat", (SIGNAL_FUNC) ctcp_msg_dcc_chat);
 827         signal_add_first("dcc chat message", (SIGNAL_FUNC) dcc_chat_msg);   /* Dangerous Function Cast (ID: 591.591) */




Change Warning 583.583 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: