Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-ircnet.c:186

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1374.1374
Procedure: fe_ircnet_init
Trace: View
Modified: Wed Sep 2 11:40:44 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-ircnet.c
   Enter fe_ircnet_init
 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: 1377.1377) */
 184         command_bind("network", NULL, (SIGNAL_FUNC) cmd_network);   /* Dangerous Function Cast (ID: 1376.1376) */
 185         command_bind("network list", NULL, (SIGNAL_FUNC) cmd_network_list);   /* Dangerous Function Cast (ID: 1375.1375) */
Wrong Number of Parameters186         command_bind("network add", NULL, (SIGNAL_FUNC) cmd_network_add);     /* Dangerous Function Cast */
 187         command_bind("network remove", NULL, (SIGNAL_FUNC) cmd_network_remove);   /* Dangerous Function Cast (ID: 1373.1373) */
 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: 1378.1378) */
 195         command_unbind("network", (SIGNAL_FUNC) cmd_network);   /* Dangerous Function Cast (ID: 1382.1382) */
 196         command_unbind("network list", (SIGNAL_FUNC) cmd_network_list);   /* Dangerous Function Cast (ID: 1381.1381) */




Change Warning 1374.1374 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: