Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 162.162
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
 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: 161.161) */
 410 
 411  
 412 void signals_init(void)
 413 {
 414         signals = g_hash_table_new(NULL, NULL);
 415 }
 416  




Change Warning 162.162 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: