Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at completion.c:123

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1483.26926
Procedure: free_completions
Trace: view
Modified: Thu Nov 26 11:00:36 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-common/core/completion.c
   Enter free_completions
 113         }
 114  
 115         g_free(word);
 116         return ret;
 117 }
 118  
 119 static void free_completions(void) 
 120 {
 121         complist = g_list_first(complist);
 122  
Wrong Number of Parameters123         g_list_foreach(complist, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 124         g_list_free(complist);
 125         complist = NULL;
 126  
 127         g_free_and_null(last_line);
 128 } 
 129  
 130 /* manual word completion - called when TAB is pressed */ 
 131 char *word_complete(WINDOW_REC *window, const char *line, int *pos, int erase, int backward)
 132 {
 133         static int startpos = 0, wordlen = 0;




Change Warning 1483.26926 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: