Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1326.1326
Procedure: cmd_oper
Trace: View
Modified: Wed Sep 2 11:40:25 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/fe-common/irc/fe-irc-commands.c
   Enter cmd_oper
 360                    irc/core handles the /OPER when password is given */ 
 361                 OPER_PASS_REC *rec;
 362  
 363                 rec = g_new(OPER_PASS_REC, 1);
 364                 rec->server = server;
 365                 rec->nick = g_strdup(*nick != '\0' ? nick : server->nick);
 366  
 367                 format = format_get_text(MODULE_NAME, NULL, server, NULL,
 368                                          IRCTXT_ASK_OPER_PASS);
 369  
Wrong Number of Parameters370                 keyboard_entry_redirect((SIGNAL_FUNC) cmd_oper_got_pass,     /* Dangerous Function Cast */
 371                                         format,
 372                                         ENTRY_REDIRECT_FLAG_HIDDEN, rec);
 373                 g_free(format);
 374  
 375                 signal_stop();
 376         }
 377  
 378         cmd_params_free(free_arg);
 379 
 380  




Change Warning 1326.1326 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: