Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1394.26840
Procedure: event_ison
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 event_ison
 298         if (--mserver->ison_count > 0) {
 299                 /* wait for the rest of the /ISON replies */ 
 300                 g_free(params);
 301                 return;
 302         }
 303  
 304         ison_check_joins(server);
 305         ison_check_parts(server);
 306  
 307         /* free memory used by temp list */ 
Wrong Number of Parameters308         g_slist_foreach(mserver->ison_tempusers, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 309         g_slist_free(mserver->ison_tempusers);
 310         mserver->ison_tempusers = NULL;
 311  
 312         g_free(params);
 313 } 
 314  
 315 static void read_settings(void)
 316 {
 317         if (notify_tag != -1) g_source_remove(notify_tag);
 318         notify_tag = g_timeout_add(settings_get_time("notify_check_time"),




Change Warning 1394.26840 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: