Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 869.26315
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
 396                         signal_remove_hook(rec, hook);
 397                 }
 398         }
 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  
Wrong Number of Parameters406         g_hash_table_foreach(signals, (GHFunc) signal_hash_ref, NULL);     /* Dangerous Function Cast */
 407         g_hash_table_foreach(signals, (GHFunc) signal_remove_module,
 408                              (void *) module);
 409         g_hash_table_foreach_remove(signals, (GHRFunc) signal_hash_unref, NULL);   /* Dangerous Function Cast (ID: 868.26314) */
 410 } 
 411  
 412 void signals_init(void)
 413 {
 414         signals = g_hash_table_new(NULL, NULL);
 415 }
 416  




Change Warning 869.26315 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: