Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at nickmatch-cache.c:105

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 799.26245
Procedure: nickmatch_cache_init
Trace: view
Modified: Thu Nov 26 10:57:52 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/core/nickmatch-cache.c
   Enter nickmatch_cache_init
 95         for (tmp = lists; tmp != NULL; tmp = tmp->next) {
 96                 NICKMATCH_REC *rec = tmp->data;
 97  
 98                 g_hash_table_remove(rec->nicks, nick);
 99         }
 100 }
 101  
 102 void nickmatch_cache_init(void) 
 103 {
 104         lists = NULL;
Wrong Number of Parameters105         signal_add("nicklist new", (SIGNAL_FUNC) sig_nick_new);     /* Dangerous Function Cast */
 106         signal_add("nicklist changed", (SIGNAL_FUNC) sig_nick_new);   /* Dangerous Function Cast (ID: 800.26246) */
 107         signal_add("nicklist host changed", (SIGNAL_FUNC) sig_nick_new);   /* Dangerous Function Cast (ID: 798.26244) */
 108         signal_add("nicklist remove", (SIGNAL_FUNC) sig_nick_remove);   /* Dangerous Function Cast (ID: 797.26243) */
 109 } 
 110  
 111 void nickmatch_cache_deinit(void)
 112 {
 113         g_slist_foreach(lists, (GFunc) nickmatch_deinit, NULL);   /* Dangerous Function Cast (ID: 801.26247) */
 114         g_slist_free(lists);
 115  




Change Warning 799.26245 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: