Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-channels.c:160

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 800.800
Procedure: cmd_join
Trace: View
Modified: Wed Sep 2 11:36:57 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/core/fe-channels.c
   Enter cmd_join
 149                 if (invite) {
 150                         if (server->last_invite == NULL) {
 151                                 printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_NOT_INVITED);
 152                                 signal_stop();
 153                                 cmd_params_free(free_arg);
 154                                 return;
 155                         }
 156                         pdata = server->last_invite;
 157                 }
 158                 if (samewindow)
 159                         signal_add("channel created",
Wrong Number of Parameters160                                    (SIGNAL_FUNC) signal_channel_created_curwin);     /* Dangerous Function Cast */
 161                 server->channels_join(server, pdata, FALSE);
 162                 if (samewindow)
 163                         signal_remove("channel created",
 164                                       (SIGNAL_FUNC) signal_channel_created_curwin);   /* Dangerous Function Cast (ID: 799.799) */
 165         }
 166         cmd_params_free(free_arg);
 167 
 168  
 169 static void cmd_channel_list_joined(void)
 170 {




Change Warning 800.800 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: