Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-netsplit.c:218

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1624.1624
Procedure: print_splits
Trace: View
Modified: Wed Sep 2 11:43:50 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/fe-common/irc/fe-netsplit.c
   Enter print_splits
 208                    source server */ 
 209                 temp.servers = get_source_servers(sserver->server, &servers);
 210                 temp.server_rec = server;
 211                 temp.channels = NULL;
 212  
 213                 g_hash_table_foreach(server->splits,
 214                                      (GHFunc) get_server_splits, &temp);
 215                 print_server_splits(server, &temp);
 216  
 217                 g_slist_foreach(temp.channels,
Wrong Number of Parameters218                                 (GFunc) temp_split_chan_free, NULL);     /* Dangerous Function Cast */
 219                 g_slist_free(temp.servers);
 220                 g_slist_free(temp.channels);
 221         }
 222  
 223         printing_splits = FALSE;
 224 
 225  
 226 static int check_server_splits(IRC_SERVER_REC *server)
 227 {
 228         time_t last;




Change Warning 1624.1624 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: