Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3625.27866
Procedure: perl_expando_deinit
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_deinit
 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) 
 57 {
Wrong Number of Parameters58         signal_remove("script destroyed", (SIGNAL_FUNC) script_unregister_expandos);     /* Dangerous Function Cast */
 59  
 60         g_hash_table_foreach(perl_expando_defs,
 61                              (GHFunc) expando_def_destroy, NULL);   /* Dangerous Function Cast (ID: 3623.27867) */
 62         g_hash_table_destroy(perl_expando_defs);
 63 } 
 64  
 65 static char *perl_expando_event(PerlExpando *rec, SERVER_REC *server,
 66                                 WI_ITEM_REC *item, int *free_ret)
 67 {
 68         dSP;




Change Warning 3625.27866 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: