Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at perl-common.c:710

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1682.1682
Procedure: perl_common_stop
Trace: View
Modified: Wed Sep 2 11:44:34 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/perl-common.c
   Enter perl_common_stop
 700 void perl_common_stop(void) 
 701 {
 702         g_hash_table_foreach(iobject_stashes, (GHFunc) free_iobject_hash, NULL);   /* Dangerous Function Cast (ID: 1684.1684) */
 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: 1683.1683) */
 707         g_hash_table_destroy(plain_stashes);
 708         plain_stashes = NULL;
 709  
Wrong Number of Parameters710         g_slist_foreach(use_protocols, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 711         g_slist_free(use_protocols);
 712         use_protocols = NULL;
 713  
 714         signal_remove("chat protocol created", (SIGNAL_FUNC) perl_register_protocol);   /* Dangerous Function Cast (ID: 1686.1686) */
 715         signal_remove("chat protocol destroyed", (SIGNAL_FUNC) perl_unregister_protocol);   /* Dangerous Function Cast (ID: 1685.1685) */
 716 




Change Warning 1682.1682 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: