Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at flood.c:159

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 651.651
Procedure: flood_deinit_server
Trace: View
Modified: Wed Sep 2 11:35:54 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/irc/flood/flood.c
   Enter flood_deinit_server
 149         g_return_if_fail(server != NULL);
 150  
 151         if (!IS_IRC_SERVER(server))
 152                 return;
 153  
 154         mserver = MODULE_DATA(server);
 155         if (mserver != NULL && mserver->floodlist != NULL) {
 156                 flood_timecheck = 0;
 157  
 158                 g_hash_table_foreach(mserver->floodlist,
Wrong Number of Parameters159                                      (GHFunc) flood_hash_destroy, NULL);     /* Dangerous Function Cast */
 160                 g_hash_table_destroy(mserver->floodlist);
 161         }
 162         g_free(mserver);
 163         MODULE_DATA_UNSET(server);
 164 
 165  
 166 static FLOOD_ITEM_REC *flood_find(FLOOD_REC *flood, int level,
 167                                   const char *target)
 168 {
 169         GSList *tmp;




Change Warning 651.651 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: