Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-netjoin.c:134

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1608.1608
Procedure: netjoin_remove
Trace: View
Modified: Wed Sep 2 11:43:44 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-netjoin.c
   Enter netjoin_remove
 124         }
 125  
 126         return NULL;
 127 }
 128  
 129 static void netjoin_remove(NETJOIN_SERVER_REC *server, NETJOIN_REC *rec) 
 130 {
 131         server->netjoins = g_slist_remove(server->netjoins, rec);
 132  
 133         g_slist_foreach(rec->old_channels, (GFunc) g_free, NULL);   /* Dangerous Function Cast (ID: 1607.1607) */
Wrong Number of Parameters134         g_slist_foreach(rec->now_channels, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 135         g_slist_free(rec->old_channels);
 136         g_slist_free(rec->now_channels);
 137  
 138         g_free(rec->nick);
 139         g_free(rec);
 140 
 141  
 142 static void netjoin_server_remove(NETJOIN_SERVER_REC *server)
 143 {
 144         joinservers = g_slist_remove(joinservers, server);




Change Warning 1608.1608 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: