Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1731.1731
Procedure: handle_key_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_key_redirect
 79 {
 80         g_source_remove(readtag);
 81         readtag = -1;
 82 }
 83  
 84 static void handle_key_redirect(int key) 
 85 {
 86         ENTRY_REDIRECT_KEY_FUNC func;
 87         void *data;
 88  
Wrong Number of Parameters89         func = (ENTRY_REDIRECT_KEY_FUNC) redir->func;     /* Dangerous Function Cast */
 90         data = redir->data;
 91         g_free_and_null(redir);   /* Null Test After Dereference (ID: 2366.2377) */
 92  
 93         gui_entry_set_prompt(active_entry, "");
 94  
 95         if (func != NULL)
 96                 func(key, data, active_win->active_server, active_win->active);
 97 
 98  
 99 static void handle_entry_redirect(const char *line)




Change Warning 1731.1731 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: