Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 80.80
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
 188                 g_hash_table_foreach(idlist, (GHFunc) uniq_destroy, NULL);   /* Dangerous Function Cast (ID: 79.79) */
 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  
Wrong Number of Parameters198                 g_hash_table_foreach(idlist, (GHFunc) uniq_destroy_str, NULL);     /* Dangerous Function Cast */
 199                 g_hash_table_destroy(idlist);
 200         }
 201 
 202  
 203 /* Register a new module. The `name' is the root module name, `submodule'
 204    specifies the current module to be registered (eg. "perl", "fe").
 205    The module is registered as statically loaded by default. */ 
 206 MODULE_FILE_REC *module_register_full(const char *name, const char *submodule,
 207                                       const char *defined_module_name)
 208 {




Change Warning 80.80 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: