Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at Statusbar.c:38

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3680.27875
Procedure: perl_statusbar_init
Trace: view
Modified: Thu Nov 26 11:05:22 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/perl/textui/Statusbar.c
   Enter perl_statusbar_init
 28 {
 29         g_hash_table_foreach_remove(perl_sbar_defs,
 30                                     (GHRFunc) check_sbar_destroy,
 31                                     script->package);
 32 }
 33  
 34 void perl_statusbar_init(void) 
 35 {
 36         perl_sbar_defs = g_hash_table_new((GHashFunc) g_str_hash,
 37                                           (GCompareFunc) g_str_equal);
Wrong Number of Parameters38         signal_add("script destroyed", (SIGNAL_FUNC) script_unregister_statusbars);     /* Dangerous Function Cast */
 39 } 
 40  
 41 static void statusbar_item_def_destroy(void *key, void *value)
 42 {
 43         statusbar_item_unregister(key);
 44         g_free(key);
 45         g_free(value);
 46 }
 47  
 48 void perl_statusbar_deinit(void)




Change Warning 3680.27875 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: