Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at perl-common.c:702

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3530.27836
Procedure: perl_common_stop
Trace: view
Modified: Thu Nov 26 11:04:57 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/perl-common.c
   Enter perl_common_stop
 692  
 693         use_protocols = NULL;
 694         g_slist_foreach(chat_protocols, (GFunc) perl_register_protocol, NULL);   /* Dangerous Function Cast (ID: 3517.27831) */
 695  
 696         signal_add("chat protocol created", (SIGNAL_FUNC) perl_register_protocol);   /* Dangerous Function Cast (ID: 3523.27833) */
 697         signal_add("chat protocol destroyed", (SIGNAL_FUNC) perl_unregister_protocol);   /* Dangerous Function Cast (ID: 3520.27832) */
 698 }
 699  
 700 void perl_common_stop(void) 
 701 {
Wrong Number of Parameters702         g_hash_table_foreach(iobject_stashes, (GHFunc) free_iobject_hash, NULL);     /* Dangerous Function Cast */
 703         g_hash_table_destroy(iobject_stashes);
 704         iobject_stashes = NULL;
 705  
 706         g_hash_table_foreach(plain_stashes, (GHFunc) g_free, NULL);   /* Dangerous Function Cast (ID: 3527.27835) */
 707         g_hash_table_destroy(plain_stashes);
 708         plain_stashes = NULL;
 709  
 710         g_slist_foreach(use_protocols, (GFunc) g_free, NULL);   /* Dangerous Function Cast (ID: 3525.27834) */
 711         g_slist_free(use_protocols);
 712         use_protocols = NULL;




Change Warning 3530.27836 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: