Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-irc-commands.c:410

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2538.27486
Procedure: fe_irc_commands_init
Trace: view
Modified: Thu Nov 26 11:02:59 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/fe-common/irc/fe-irc-commands.c
   Enter fe_irc_commands_init
 400         irc_send_cmdv(server, "SETHOST %s", data);
 401 }
 402  
 403 void fe_irc_commands_init(void) 
 404 {
 405         command_bind_irc_last("me", NULL, (SIGNAL_FUNC) cmd_me);   /* Dangerous Function Cast (ID: 2525.27479) */
 406         command_bind_irc_last("action", NULL, (SIGNAL_FUNC) cmd_action);   /* Dangerous Function Cast (ID: 2527.27481) */
 407         command_bind_irc("notice", NULL, (SIGNAL_FUNC) cmd_notice);   /* Dangerous Function Cast (ID: 2531.27483) */
 408         command_bind_irc("ctcp", NULL, (SIGNAL_FUNC) cmd_ctcp);   /* Dangerous Function Cast (ID: 2533.27484) */
 409         command_bind_irc("nctcp", NULL, (SIGNAL_FUNC) cmd_nctcp);   /* Dangerous Function Cast (ID: 2535.27485) */
Wrong Number of Parameters410         command_bind_irc("wall", NULL, (SIGNAL_FUNC) cmd_wall);     /* Dangerous Function Cast */
 411         command_bind_irc("ban", NULL, (SIGNAL_FUNC) cmd_ban);   /* Dangerous Function Cast (ID: 2540.27487) */
 412         command_bind_irc("ver", NULL, (SIGNAL_FUNC) cmd_ver);   /* Dangerous Function Cast (ID: 2542.27488) */
 413         command_bind_irc("topic", NULL, (SIGNAL_FUNC) cmd_topic);   /* Dangerous Function Cast (ID: 2544.27489) */
 414         command_bind_irc("ts", NULL, (SIGNAL_FUNC) cmd_ts);   /* Dangerous Function Cast (ID: 2547.27490) */
 415         command_bind_irc("oper", NULL, (SIGNAL_FUNC) cmd_oper);   /* Dangerous Function Cast (ID: 2526.27480) */
 416         command_bind_irc("sethost", NULL, (SIGNAL_FUNC) cmd_sethost);   /* Dangerous Function Cast (ID: 2529.27482) */
 417 } 
 418  
 419 void fe_irc_commands_deinit(void)
 420 {




Change Warning 2538.27486 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: