Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at signals.c:409

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 868.26314
Procedure: signals_remove_module
Trace: view
Modified: Thu Nov 26 10:58:08 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/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: 869.26315) */
 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 868.26314 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: