Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-modes.c:68

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1597.1597
Procedure: mode_destroy
Trace: View
Modified: Wed Sep 2 11:43:37 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-common/irc/fe-modes.c
   Enter mode_destroy
 58         }
 59  
 60         return NULL;
 61 }
 62  
 63 static void mode_destroy(MODE_REC *mode) 
 64 {
 65         g_return_if_fail(mode != NULL);
 66  
 67         modes = g_slist_remove(modes, mode);
Wrong Number of Parameters68         g_slist_foreach(mode->nicks, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 69         g_slist_free(mode->nicks);
 70         g_free(mode->mode);
 71         g_free(mode);
 72 
 73  
 74 static void print_mode(MODE_REC *rec)
 75 {
 76         GSList *tmp;
 77         char *nicks;
 78  




Change Warning 1597.1597 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: