Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 547.547
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
 247                 }
 248         }
 249         return 1;
 250 }
 251  
 252 void servers_idle_init(void) 
 253 {
 254         idlepos = 0;
 255         idle_tag = g_timeout_add(1000, (GSourceFunc) sig_idle_timeout, NULL);   /* Dangerous Function Cast (ID: 548.548) */
 256  
Wrong Number of Parameters257         signal_add("server disconnected", (SIGNAL_FUNC) sig_disconnected);     /* Dangerous Function Cast */
 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 547.547 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: