Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at notify-ison.c:144

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 687.687
Procedure: notifylist_timeout_func
Trace: View
Modified: Wed Sep 2 11:36:08 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/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 687.687 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: