Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-irc-commands.c:405

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1327.1327
Procedure: fe_irc_commands_init
Trace: View
Modified: Wed Sep 2 11:40: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/fe-common/irc/fe-irc-commands.c
   Enter fe_irc_commands_init
 395  
 396                 window_bind_add(window_item_window(channel),
 397                                 server->tag, channel->visible_name);
 398         }
 399  
 400         irc_send_cmdv(server, "SETHOST %s", data);
 401 }
 402  
 403 void fe_irc_commands_init(void) 
 404 {
Wrong Number of Parameters405         command_bind_irc_last("me", NULL, (SIGNAL_FUNC) cmd_me);     /* Dangerous Function Cast */
 406         command_bind_irc_last("action", NULL, (SIGNAL_FUNC) cmd_action);   /* Dangerous Function Cast (ID: 1329.1329) */
 407         command_bind_irc("notice", NULL, (SIGNAL_FUNC) cmd_notice);   /* Dangerous Function Cast (ID: 1331.1331) */
 408         command_bind_irc("ctcp", NULL, (SIGNAL_FUNC) cmd_ctcp);   /* Dangerous Function Cast (ID: 1332.1332) */
 409         command_bind_irc("nctcp", NULL, (SIGNAL_FUNC) cmd_nctcp);   /* Dangerous Function Cast (ID: 1333.1333) */
 410         command_bind_irc("wall", NULL, (SIGNAL_FUNC) cmd_wall);   /* Dangerous Function Cast (ID: 1334.1334) */
 411         command_bind_irc("ban", NULL, (SIGNAL_FUNC) cmd_ban);   /* Dangerous Function Cast (ID: 1335.1335) */
 412         command_bind_irc("ver", NULL, (SIGNAL_FUNC) cmd_ver);   /* Dangerous Function Cast (ID: 1336.1336) */
 413         command_bind_irc("topic", NULL, (SIGNAL_FUNC) cmd_topic);   /* Dangerous Function Cast (ID: 1337.1337) */
 414         command_bind_irc("ts", NULL, (SIGNAL_FUNC) cmd_ts);   /* Dangerous Function Cast (ID: 1338.1338) */
 415         command_bind_irc("oper", NULL, (SIGNAL_FUNC) cmd_oper);   /* Dangerous Function Cast (ID: 1328.1328) */




Change Warning 1327.1327 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: