Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at irc-servers.c:325

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1138.26584
Procedure: sig_disconnected
Trace: view
Modified: Thu Nov 26 10:59:14 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/irc/core/irc-servers.c
   Enter sig_disconnected
 315         for (tmp = server->cmdqueue; tmp != NULL; tmp = tmp->next->next) {
 316                 g_free(tmp->data);
 317                 if (tmp->next->data != NULL)
 318                         server_redirect_destroy(tmp->next->data);
 319         }
 320         g_slist_free(server->cmdqueue);
 321         server->cmdqueue = NULL;
 322  
 323         /* these are dynamically allocated only if isupport was sent */ 
 324         g_hash_table_foreach(server->isupport,
Wrong Number of Parameters325                              (GHFunc) isupport_destroy_hash, server);     /* Dangerous Function Cast */
 326         g_hash_table_destroy(server->isupport);
 327         server->isupport = NULL;
 328  
 329         g_free_and_null(server->wanted_usermode);
 330         g_free_and_null(server->real_address);
 331         g_free_and_null(server->usermode);
 332         g_free_and_null(server->userhost);
 333         g_free_and_null(server->last_invite);
 334 } 
 335  




Change Warning 1138.26584 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: