Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at hilight-text.c:114

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2048.27222
Procedure: hilights_destroy_all
Trace: view
Modified: Thu Nov 26 11:01:52 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/hilight-text.c
   Enter hilights_destroy_all
 104 #endif 
 105         if (rec->channels != NULL) g_strfreev(rec->channels);
 106         g_free_not_null(rec->color);
 107         g_free_not_null(rec->act_color);
 108         g_free(rec->text);
 109         g_free(rec);
 110 }
 111  
 112 static void hilights_destroy_all(void) 
 113 {
Wrong Number of Parameters114         g_slist_foreach(hilights, (GFunc) hilight_destroy, NULL);     /* Dangerous Function Cast */
 115         g_slist_free(hilights);
 116         hilights = NULL;
 117 } 
 118  
 119 static void hilight_init_rec(HILIGHT_REC *rec)
 120 {
 121 #ifdef HAVE_REGEX_H 
 122         if (rec->regexp_compiled) regfree(&rec->preg);
 123         rec->regexp_compiled = !rec->regexp ? FALSE :
 124                 regcomp(&rec->preg, rec->text, REG_EXTENDED|REG_ICASE) == 0;




Change Warning 2048.27222 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: