Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at irc-servers.c:474

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1139.26585
Procedure: irc_servers_start_cmd_timeout
Trace: view
Modified: Thu Nov 26 10:59:14 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/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 1139.26585 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: