Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at commands.c:994

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 15.15
Procedure: commands_deinit
Trace: View
Modified: Wed Sep 2 11:31:19 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/core/commands.c
   Enter commands_deinit
 984         signal_add("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 12.12) */
 985  
 986         command_bind("eval", NULL, (SIGNAL_FUNC) cmd_eval);   /* Dangerous Function Cast (ID: 11.11) */
 987         command_bind("cd", NULL, (SIGNAL_FUNC) cmd_cd);   /* Dangerous Function Cast (ID: 10.10) */
 988 }
 989  
 990 void commands_deinit(void) 
 991 {
 992         g_free_not_null(current_command);
 993  
Wrong Number of Parameters994         signal_remove("send command", (SIGNAL_FUNC) event_command);     /* Dangerous Function Cast */
 995  
 996         command_unbind("eval", (SIGNAL_FUNC) cmd_eval);   /* Dangerous Function Cast (ID: 14.14) */
 997         command_unbind("cd", (SIGNAL_FUNC) cmd_cd);   /* Dangerous Function Cast (ID: 13.13) */
 998 




Change Warning 15.15 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: