Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1245.1245
Procedure: fe_dcc_chat_init
Trace: View
Modified: Wed Sep 2 11:39:53 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/irc/dcc/fe-dcc-chat.c
   Enter fe_dcc_chat_init
 348         signal_add("dcc ctcp action", (SIGNAL_FUNC) dcc_chat_action);   /* Dangerous Function Cast (ID: 1238.1238) */
 349         signal_add("default dcc ctcp", (SIGNAL_FUNC) dcc_chat_ctcp);   /* Dangerous Function Cast (ID: 1237.1237) */
 350         signal_add("dcc error ctcp", (SIGNAL_FUNC) dcc_error_ctcp);   /* Dangerous Function Cast (ID: 1236.1236) */
 351         signal_add("default ctcp msg dcc", (SIGNAL_FUNC) dcc_unknown_ctcp);
 352         signal_add("default ctcp reply dcc", (SIGNAL_FUNC) dcc_unknown_reply);   /* Dangerous Function Cast (ID: 1251.1251) */
 353         signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 1250.1250) */
 354         signal_add("query destroyed", (SIGNAL_FUNC) sig_query_destroyed);   /* Dangerous Function Cast (ID: 1249.1249) */
 355         signal_add("dcc list print", (SIGNAL_FUNC) sig_dcc_list_print);   /* Dangerous Function Cast (ID: 1248.1248) */
 356         command_bind("msg", NULL, (SIGNAL_FUNC) cmd_msg);   /* Dangerous Function Cast (ID: 1247.1247) */
 357         command_bind("me", NULL, (SIGNAL_FUNC) cmd_me);   /* Dangerous Function Cast (ID: 1246.1246) */
Wrong Number of Parameters358         command_bind("action", NULL, (SIGNAL_FUNC) cmd_action);     /* Dangerous Function Cast */
 359         command_bind("ctcp", NULL, (SIGNAL_FUNC) cmd_ctcp);   /* Dangerous Function Cast (ID: 1244.1244) */
 360         signal_add("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 1243.1243) */
 361 
 362  
 363 void fe_dcc_chat_deinit(void)
 364 {
 365         fe_dcc_chat_messages_deinit();
 366  
 367         signal_remove("dcc request", (SIGNAL_FUNC) dcc_request);   /* Dangerous Function Cast (ID: 1265.1265) */
 368         signal_remove("dcc connected", (SIGNAL_FUNC) dcc_connected);   /* Dangerous Function Cast (ID: 1264.1264) */




Change Warning 1245.1245 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: