Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at commands.c:987

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 717.26163
Procedure: commands_init
Trace: view
Modified: Thu Nov 26 10:57:18 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/core/commands.c
   Enter commands_init
 977         commands = NULL;
 978         current_command = NULL;
 979         alias_runstack = NULL;
 980  
 981         signal_default_command = signal_get_uniq_id("default command");
 982  
 983         settings_add_str("misc", "cmdchars", "/");
 984         signal_add("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 719.26165) */
 985  
 986         command_bind("eval", NULL, (SIGNAL_FUNC) cmd_eval);   /* Dangerous Function Cast (ID: 718.26164) */
Wrong Number of Parameters987         command_bind("cd", NULL, (SIGNAL_FUNC) cmd_cd);     /* Dangerous Function Cast */
 988 } 
 989  
 990 void commands_deinit(void)
 991 {
 992         g_free_not_null(current_command);
 993  
 994         signal_remove("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 722.26168) */
 995  
 996         command_unbind("eval", (SIGNAL_FUNC) cmd_eval);   /* Dangerous Function Cast (ID: 721.26167) */
 997         command_unbind("cd", (SIGNAL_FUNC) cmd_cd);   /* Dangerous Function Cast (ID: 720.26166) */




Change Warning 717.26163 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: