Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 163.163
Procedure: signals_deinit
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_deinit
 423         while (rec->hooks != NULL) {
 424                 g_warning(" - module '%s' function %p",
 425                           rec->hooks->module, rec->hooks->func);
 426  
 427                 signal_remove_hook(rec, &rec->hooks);
 428         }
 429 }
 430  
 431 void signals_deinit(void) 
 432 {
Wrong Number of Parameters433         g_hash_table_foreach(signals, (GHFunc) signal_hash_ref, NULL);     /* Dangerous Function Cast */
 434         g_hash_table_foreach(signals, (GHFunc) signal_free, NULL);   /* Dangerous Function Cast (ID: 164.164) */
 435         g_hash_table_foreach_remove(signals, (GHRFunc) signal_hash_unref, NULL);   /* Dangerous Function Cast (ID: 165.165) */
 436         g_hash_table_destroy(signals);
 437  
 438         module_uniq_destroy("signals");
 439 




Change Warning 163.163 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: