Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at parse.c:330

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 708.26154
Procedure: config_close
Trace: view
Modified: Thu Nov 26 10:57:11 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/lib-config/parse.c
   Enter config_close
 320         return rec;
 321 }
 322  
 323 void config_close(CONFIG_REC *rec) 
 324 {
 325         g_return_if_fail(rec != NULL);
 326  
 327         config_nodes_remove_all(rec);
 328         g_free(rec->mainnode);
 329  
Wrong Number of Parameters330         g_hash_table_foreach(rec->cache, (GHFunc) g_free, NULL);     /* Dangerous Function Cast */
 331         g_hash_table_destroy(rec->cache);
 332         g_hash_table_destroy(rec->cache_nodes);
 333         g_free_not_null(rec->last_error);
 334         g_free_not_null(rec->fname);
 335         g_free(rec);
 336 } 
 337  
 338 void config_change_file_name(CONFIG_REC *rec, const char *fname, int create_mode)
 339 {
 340         g_return_if_fail(rec != NULL);




Change Warning 708.26154 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: