Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 689.689
Procedure: read_settings
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 read_settings
 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"),
Wrong Number of Parameters319                                    (GSourceFunc) notifylist_timeout_func, NULL);     /* Dangerous Function Cast */
 320  
 321         notify_whois_time = settings_get_time("notify_whois_time")/1000;
 322 
 323  
 324 void notifylist_ison_init(void)
 325 {
 326         settings_add_time("misc", "notify_check_time", DEFAULT_NOTIFY_CHECK_TIME);
 327         settings_add_time("misc", "notify_whois_time", DEFAULT_NOTIFY_WHOIS_TIME);
 328  
 329         notify_tag = -1;




Change Warning 689.689 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: