Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at servers-idle.c:255

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 548.548
Procedure: servers_idle_init
Trace: View
Modified: Wed Sep 2 11:35: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/core/servers-idle.c
   Enter servers_idle_init
 245                         /* We're idling and we have idle commands to run! */ 
 246                         server_idle_next(rec);
 247                 }
 248         }
 249         return 1;
 250 }
 251  
 252 void servers_idle_init(void) 
 253 {
 254         idlepos = 0;
Wrong Number of Parameters255         idle_tag = g_timeout_add(1000, (GSourceFunc) sig_idle_timeout, NULL);     /* Dangerous Function Cast */
 256  
 257         signal_add("server disconnected", (SIGNAL_FUNC) sig_disconnected);   /* Dangerous Function Cast (ID: 547.547) */
 258 
 259  
 260 void servers_idle_deinit(void)
 261 {
 262         g_source_remove(idle_tag);
 263         signal_remove("server disconnected", (SIGNAL_FUNC) sig_disconnected);   /* Dangerous Function Cast (ID: 549.549) */
 264 }




Change Warning 548.548 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: