Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at themes.c:1233

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1115.1115
Procedure: completion_get_formats
Trace: View
Modified: Wed Sep 2 11:39:02 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/core/themes.c
   Enter completion_get_formats
 1223  
 1224         modules = get_sorted_modules();
 1225         if (*module == '\0' || theme_search(modules, module) != NULL) {
 1226                 for (tmp = modules; tmp != NULL; tmp = tmp->next) {
 1227                         THEME_SEARCH_REC *rec = tmp->data;
 1228  
 1229                         if (*module == '\0' || g_strcasecmp(rec->short_name, module) == 0)
 1230                                 complete_format_list(rec, key, &list);
 1231                 }
 1232         }
Wrong Number of Parameters1233         g_slist_foreach(modules, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 1234         g_slist_free(modules);
 1235  
 1236         return list;
 1237 
 1238  
 1239 static void sig_complete_format(GList **list, WINDOW_REC *window,
 1240                                 const char *word, const char *line, int *want_space)
 1241 {
 1242         const char *ptr;
 1243         int words;




Change Warning 1115.1115 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: