Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at signals.c:409

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 161.161
Procedure: signals_remove_module
Trace: View
Modified: Wed Sep 2 11:32:28 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/signals.c
   Enter signals_remove_module
 399 }
 400  
 401 /* remove all signals that belong to `module' */ 
 402 void signals_remove_module(const char *module) 
 403 {
 404         g_return_if_fail(module != NULL);
 405  
 406         g_hash_table_foreach(signals, (GHFunc) signal_hash_ref, NULL);   /* Dangerous Function Cast (ID: 162.162) */
 407         g_hash_table_foreach(signals, (GHFunc) signal_remove_module,
 408                              (void *) module);
Wrong Number of Parameters409         g_hash_table_foreach_remove(signals, (GHRFunc) signal_hash_unref, NULL);     /* Dangerous Function Cast */
 410 
 411  
 412 void signals_init(void)
 413 {
 414         signals = g_hash_table_new(NULL, NULL);
 415 }
 416  
 417 static void signal_free(void *key, Signal *rec)
 418 {
 419         /* refcount-1 because we just referenced it ourself */ 




Change Warning 161.161 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: