Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at irc-commands.c:743

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 978.26424
Procedure: knockout_timeout
Trace: view
Modified: Thu Nov 26 10:58:33 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-commands.c
   Enter knockout_timeout
 733                 if (rec->unban_time <= now) {
 734                         /* timeout, unban. */ 
 735                         ban_remove(rec->channel, rec->ban);
 736                         knockout_destroy(server, rec);
 737                 }
 738         }
 739 }
 740  
 741 static int knockout_timeout(void) 
 742 {
Wrong Number of Parameters743         g_slist_foreach(servers, (GFunc) knockout_timeout_server, NULL);     /* Dangerous Function Cast */
 744         return 1;
 745 } 
 746  
 747 /* SYNTAX: KNOCKOUT [<time>] <nicks> <reason> */ 
 748 static void cmd_knockout(const char *data, IRC_SERVER_REC *server,
 749                          IRC_CHANNEL_REC *channel)
 750 {
 751         KNOCKOUT_REC *rec;
 752         char *nicks, *reason, *timeoutstr, *kickcmd, *bancmd, *recoded;
 753         char **nicklist, *spacenicks, *banmasks;




Change Warning 978.26424 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: