Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at gui-readline.c:106

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3713.27884
Procedure: handle_entry_redirect
Trace: view
Modified: Thu Nov 26 11:05:25 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-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: 7428.28530) */
 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 3713.27884 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: