Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at themes.c:1092

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2160.27266
Procedure: cmd_format
Trace: view
Modified: Thu Nov 26 11:02: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/core/themes.c
   Enter cmd_format
 1082                 value = "";
 1083         else if (*value == '\0')
 1084                 value = NULL;
 1085  
 1086         for (tmp = modules; tmp != NULL; tmp = tmp->next) {
 1087                 THEME_SEARCH_REC *rec = tmp->data;
 1088  
 1089                 if (module == NULL || g_strcasecmp(rec->short_name, module) == 0)
 1090                         theme_show(rec, key, value, reset);
 1091         }
Wrong Number of Parameters1092         g_slist_foreach(modules, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 1093         g_slist_free(modules);
 1094  
 1095         cmd_params_free(free_arg);
 1096 } 
 1097  
 1098 typedef struct {
 1099         CONFIG_REC *config;
 1100         int save_all;
 1101 } THEME_SAVE_REC;
 1102  




Change Warning 2160.27266 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: