Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-ircnet.c:184

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4666.27528
Procedure: fe_ircnet_init
Trace: view
Modified: Thu Nov 26 11:03:09 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-ircnet.c
   Enter fe_ircnet_init
 174 {
 175         if (*data == '\0')
 176                 cmd_network_list();
 177         else 
 178                 command_runsub("network", data, server, item);
 179 }
 180  
 181 void fe_ircnet_init(void) 
 182 {
 183         command_bind("ircnet", NULL, (SIGNAL_FUNC) cmd_network);   /* Dangerous Function Cast (ID: 4667.27529) */
Wrong Number of Parameters184         command_bind("network", NULL, (SIGNAL_FUNC) cmd_network);     /* Dangerous Function Cast */
 185         command_bind("network list", NULL, (SIGNAL_FUNC) cmd_network_list);   /* Dangerous Function Cast (ID: 4665.27527) */
 186         command_bind("network add", NULL, (SIGNAL_FUNC) cmd_network_add);   /* Dangerous Function Cast (ID: 4664.27526) */
 187         command_bind("network remove", NULL, (SIGNAL_FUNC) cmd_network_remove);   /* Dangerous Function Cast (ID: 4663.27525) */
 188  
 189         command_set_options("network add", "-kicks -msgs -modes -whois -cmdspeed -cmdmax -nick -user -realname -host -autosendcmd -querychans -usermode");
 190 } 
 191  
 192 void fe_ircnet_deinit(void)
 193 {
 194         command_unbind("ircnet", (SIGNAL_FUNC) cmd_network);   /* Dangerous Function Cast (ID: 4668.27530) */




Change Warning 4666.27528 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: