Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 721.26167
Procedure: commands_deinit
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_deinit
 986         command_bind("eval", NULL, (SIGNAL_FUNC) cmd_eval);   /* Dangerous Function Cast (ID: 718.26164) */
 987         command_bind("cd", NULL, (SIGNAL_FUNC) cmd_cd);   /* Dangerous Function Cast (ID: 717.26163) */
 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  
Wrong Number of Parameters996         command_unbind("eval", (SIGNAL_FUNC) cmd_eval);     /* Dangerous Function Cast */
 997         command_unbind("cd", (SIGNAL_FUNC) cmd_cd);   /* Dangerous Function Cast (ID: 720.26166) */
 998 } 




Change Warning 721.26167 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: