Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at Expando.c:58

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1714.1714
Procedure: perl_expando_deinit
Trace: View
Modified: Wed Sep 2 11:44:48 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/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: 1715.1715) */
 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 1714.1714 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: