Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at Settings.c:73

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1720.1720
Procedure: perl_settings_deinit
Trace: View
Modified: Wed Sep 2 11:44:51 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/perl/common/Settings.c
   Enter perl_settings_deinit
 63 {
 64         perl_settings = g_hash_table_new((GHashFunc) g_direct_hash,
 65                                          (GCompareFunc) g_direct_equal);
 66         signal_add("script destroyed", (SIGNAL_FUNC) sig_script_destroyed);   /* Dangerous Function Cast (ID: 1718.1718) */
 67 }
 68  
 69 void perl_settings_deinit(void) 
 70 {
 71         signal_remove("script destroyed", (SIGNAL_FUNC) sig_script_destroyed);   /* Dangerous Function Cast (ID: 1719.1719) */
 72  
Wrong Number of Parameters73         g_hash_table_foreach(perl_settings, (GHFunc) perl_settings_free, NULL);     /* Dangerous Function Cast */
 74         g_hash_table_destroy(perl_settings);
 75 
 76  
 77 #ifndef PERL_UNUSED_VAR 
 78 #  define PERL_UNUSED_VAR(var) if (0) var = var 
 79 #endif 
 80  
 81 #line 82 "Settings.c"
 82  
 83 XS(XS_Irssi_settings_get_str); /* prototype to pass -Wmissing-prototypes */ 




Change Warning 1720.1720 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: