Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at Expando.c:46

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3620.27865
Procedure: perl_expando_init
Trace: view
Modified: Thu Nov 26 11:05:13 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/common/Expando.c
   Enter perl_expando_init
 36 static void script_unregister_expandos(PERL_SCRIPT_REC *script)
 37 {
 38         g_hash_table_foreach_remove(perl_expando_defs,
 39                                     (GHRFunc) check_expando_destroy, script);
 40 }
 41  
 42 void perl_expando_init(void) 
 43 {
 44         perl_expando_defs = g_hash_table_new((GHashFunc) g_str_hash,
 45                                              (GCompareFunc) g_str_equal);
Wrong Number of Parameters46         signal_add("script destroyed", (SIGNAL_FUNC) script_unregister_expandos);     /* Dangerous Function Cast */
 47 } 
 48  
 49 static void expando_def_destroy(char *key, PerlExpando *rec)
 50 {
 51         SvREFCNT_dec(rec->func);
 52         g_free(key);
 53         g_free(rec);
 54 }
 55  
 56 void perl_expando_deinit(void)




Change Warning 3620.27865 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: