Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3520.27832
Procedure: perl_common_start
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_start
 687         iobject_stashes = g_hash_table_new((GHashFunc) g_direct_hash,
 688                                         (GCompareFunc) g_direct_equal);
 689         plain_stashes = g_hash_table_new((GHashFunc) g_str_hash,
 690                                          (GCompareFunc) g_str_equal);
 691         irssi_add_plains(core_plains);
 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) */
Wrong Number of Parameters697         signal_add("chat protocol destroyed", (SIGNAL_FUNC) perl_unregister_protocol);     /* Dangerous Function Cast */
 698 } 
 699  
 700 void perl_common_stop(void)
 701 {
 702         g_hash_table_foreach(iobject_stashes, (GHFunc) free_iobject_hash, NULL);   /* Dangerous Function Cast (ID: 3530.27836) */
 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);




Change Warning 3520.27832 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: