Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at notify-ison.c:144

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1393.26839
Procedure: notifylist_timeout_func
Trace: view
Modified: Thu Nov 26 11:00:13 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/notifylist/notify-ison.c
   Enter notifylist_timeout_func
 134                 g_free(nick);
 135         }
 136  
 137         if (cmd->len > 0)
 138                 ison_send(server, cmd);
 139         g_string_free(cmd, TRUE);
 140 }
 141  
 142 static int notifylist_timeout_func(void) 
 143 {
Wrong Number of Parameters144         g_slist_foreach(servers, (GFunc) notifylist_timeout_server, NULL);     /* Dangerous Function Cast */
 145         return 1;
 146 } 
 147  
 148 static void ison_save_users(MODULE_SERVER_REC *mserver, char *online)
 149 {
 150         char *ptr;
 151  
 152         while (online != NULL && *online != '\0') {
 153                 ptr = strchr(online, ' ');
 154                 if (ptr != NULL) *ptr++ = '\0';




Change Warning 1393.26839 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: