Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at gui-readline.c:106

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1732.1732
Procedure: handle_entry_redirect
Trace: View
Modified: Wed Sep 2 11:45:03 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-text/gui-readline.c
   Enter handle_entry_redirect
 96                 func(key, data, active_win->active_server, active_win->active);
 97 }
 98  
 99 static void handle_entry_redirect(const char *line) 
 100 {
 101         ENTRY_REDIRECT_ENTRY_FUNC func;
 102         void *data;
 103  
 104         gui_entry_set_hidden(active_entry, FALSE);
 105  
Wrong Number of Parameters106         func = (ENTRY_REDIRECT_ENTRY_FUNC) redir->func;     /* Dangerous Function Cast */
 107         data = redir->data;
 108         g_free_and_null(redir);   /* Null Test After Dereference (ID: 2367.2378) */
 109  
 110         gui_entry_set_prompt(active_entry, "");
 111  
 112         if (func != NULL) {
 113                 func(line, data, active_win->active_server,
 114                      active_win->active);
 115         }
 116 




Change Warning 1732.1732 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: