Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at dcc-chat.c:830

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1295.26741
Procedure: dcc_chat_init
Trace: view
Modified: Thu Nov 26 10:59:51 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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/irc/dcc/dcc-chat.c
   Enter dcc_chat_init
 820         command_bind("dcc chat", NULL, (SIGNAL_FUNC) cmd_dcc_chat);   /* Dangerous Function Cast (ID: 1291.26736) */
 821         command_set_options("dcc chat", "passive");
 822         command_bind("mircdcc", NULL, (SIGNAL_FUNC) cmd_mircdcc);   /* Dangerous Function Cast (ID: 1292.26737) */
 823         command_bind("dcc close", NULL, (SIGNAL_FUNC) cmd_dcc_close);   /* Dangerous Function Cast (ID: 1301.26747) */
 824         command_bind("whois", NULL, (SIGNAL_FUNC) cmd_whois);   /* Dangerous Function Cast (ID: 1300.26746) */
 825         signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 1299.26745) */
 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: 1298.26744) */
 828         signal_add("dcc ctcp dcc", (SIGNAL_FUNC) dcc_ctcp_redirect);   /* Dangerous Function Cast (ID: 1297.26743) */
 829         signal_add("dcc reply dcc", (SIGNAL_FUNC) dcc_ctcp_reply_redirect);   /* Dangerous Function Cast (ID: 1296.26742) */
Wrong Number of Parameters830         signal_add("ctcp reply dcc reject", (SIGNAL_FUNC) ctcp_reply_dcc_reject);     /* Dangerous Function Cast */
 831         signal_add("event nick", (SIGNAL_FUNC) event_nick);   /* Dangerous Function Cast (ID: 1294.26740) */
 832 } 
 833  
 834 void dcc_chat_deinit(void)
 835 {
 836         dcc_unregister_type("CHAT");
 837         command_unbind("msg", (SIGNAL_FUNC) cmd_msg);   /* Dangerous Function Cast (ID: 1311.26757) */
 838         command_unbind("me", (SIGNAL_FUNC) cmd_me);   /* Dangerous Function Cast (ID: 1310.26756) */
 839         command_unbind("action", (SIGNAL_FUNC) cmd_action);   /* Dangerous Function Cast (ID: 1309.26755) */
 840         command_unbind("ctcp", (SIGNAL_FUNC) cmd_ctcp);   /* Dangerous Function Cast (ID: 1308.26754) */




Change Warning 1295.26741 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: