Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at irc-commands.c:743

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 271.271
Procedure: knockout_timeout
Trace: View
Modified: Wed Sep 2 11:33:12 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-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 271.271 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: