Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-core-commands.c:317

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1590.27003
Procedure: fe_core_commands_init
Trace: view
Modified: Thu Nov 26 11:00:54 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/core/fe-core-commands.c
   Enter fe_core_commands_init
 307         g_string_free(str, TRUE);
 308 }
 309  
 310 void fe_core_commands_init(void) 
 311 {
 312         command_hide_output = 0;
 313  
 314         command_cmd = FALSE;
 315         memset(&time_command_now, 0, sizeof(GTimeVal));
 316  
Wrong Number of Parameters317         command_bind("echo", NULL, (SIGNAL_FUNC) cmd_echo);     /* Dangerous Function Cast */
 318         command_bind("version", NULL, (SIGNAL_FUNC) cmd_version);   /* Dangerous Function Cast (ID: 1589.27002) */
 319         command_bind("cat", NULL, (SIGNAL_FUNC) cmd_cat);   /* Dangerous Function Cast (ID: 1588.27001) */
 320         command_bind("beep", NULL, (SIGNAL_FUNC) cmd_beep);   /* Dangerous Function Cast (ID: 1585.27000) */
 321         command_bind("uptime", NULL, (SIGNAL_FUNC) cmd_uptime);   /* Dangerous Function Cast (ID: 1583.26999) */
 322         command_bind_first("nick", NULL, (SIGNAL_FUNC) cmd_nick);   /* Dangerous Function Cast (ID: 1582.26998) */
 323  
 324         signal_add("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 1581.26997) */
 325         signal_add_last("send command", (SIGNAL_FUNC) event_command_last);   /* Dangerous Function Cast (ID: 1579.26996) */
 326         signal_add("default command", (SIGNAL_FUNC) event_default_command);   /* Dangerous Function Cast (ID: 1578.26995) */
 327         signal_add("error command", (SIGNAL_FUNC) event_cmderror);   /* Dangerous Function Cast (ID: 1577.26994) */




Change Warning 1590.27003 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: