Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at modules.c:188

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 79.79
Procedure: module_uniq_destroy
Trace: View
Modified: Wed Sep 2 11:31:51 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/core/modules.c
   Enter module_uniq_destroy
 178 {
 179         GHashTable *idlist;
 180         gpointer key, value;
 181  
 182         if (g_hash_table_lookup_extended(idlookup, module, &key, &value)) {
 183                 idlist = value;
 184  
 185                 g_hash_table_remove(idlookup, key);
 186                 g_free(key);
 187  
Wrong Number of Parameters188                 g_hash_table_foreach(idlist, (GHFunc) uniq_destroy, NULL);     /* Dangerous Function Cast */
 189                 g_hash_table_destroy(idlist);
 190         }
 191  
 192         if (g_hash_table_lookup_extended(stridlookup, module, &key, &value)) {
 193                 idlist = value;
 194  
 195                 g_hash_table_remove(stridlookup, key);
 196                 g_free(key);
 197  
 198                 g_hash_table_foreach(idlist, (GHFunc) uniq_destroy_str, NULL);   /* Dangerous Function Cast (ID: 80.80) */




Change Warning 79.79 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: