Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at commands.c:192

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 715.26161
Procedure: command_module_free
Trace: view
Modified: Thu Nov 26 10:57:17 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/core/commands.c
   Enter command_module_free
 182         g_free_not_null(rec->category);
 183         g_strfreev(rec->options);
 184         g_free(rec->cmd);
 185         g_free(rec);
 186 }
 187  
 188 static void command_module_free(COMMAND_MODULE_REC *modrec, COMMAND_REC *rec) 
 189 {
 190         rec->modules = g_slist_remove(rec->modules, modrec);
 191  
Wrong Number of Parameters192         g_slist_foreach(modrec->callbacks, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 193         g_slist_free(modrec->callbacks);
 194         g_free(modrec->name);
 195         g_free_not_null(modrec->options);
 196         g_free(modrec);
 197 } 
 198  
 199 static void command_module_destroy(COMMAND_REC *rec,
 200                                    COMMAND_MODULE_REC *modrec)
 201 {
 202         GSList *tmp, *freelist;




Change Warning 715.26161 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: