Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at irc-servers.c:474

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 432.432
Procedure: irc_servers_start_cmd_timeout
Trace: View
Modified: Wed Sep 2 11:34:22 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/irc-servers.c
   Enter irc_servers_start_cmd_timeout
 464         else {
 465                 cmd_tag = -1;
 466                 return 0;
 467         }
 468 }
 469  
 470 /* Start the timeout for sending data later and decreasing cmdcount again */ 
 471 void irc_servers_start_cmd_timeout(void) 
 472 {
 473         if (cmd_tag == -1)
Wrong Number of Parameters474                 cmd_tag = g_timeout_add(500, (GSourceFunc) servers_cmd_timeout, NULL);     /* Dangerous Function Cast */
 475 
 476  
 477 /* Return a string of all channels (and keys, if any have them) in server,
 478    like "#a,#b,#c,#d x,b_chan_key,x,x" or just "#e,#f,#g" */ 
 479 char *irc_server_get_channels(IRC_SERVER_REC *server)
 480 {
 481         GSList *tmp;
 482         GString *chans, *keys;
 483         char *ret;
 484         int use_keys;




Change Warning 432.432 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: