Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at dcc-resume.c:235

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1336.26782
Procedure: dcc_resume_init
Trace: view
Modified: Thu Nov 26 11:00:00 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/dcc/dcc-resume.c
   Enter dcc_resume_init
 225 /* SYNTAX: DCC RESUME [<nick> [<file>]] */ 
 226 static void cmd_dcc_resume(const char *data)
 227 {
 228         cmd_dcc_receive(data, dcc_send_resume, dcc_send_resume);
 229 }
 230  
 231 void dcc_resume_init(void) 
 232 {
 233         signal_add("ctcp msg dcc resume", (SIGNAL_FUNC) ctcp_msg_dcc_resume);
 234         signal_add("ctcp msg dcc accept", (SIGNAL_FUNC) ctcp_msg_dcc_accept);
Wrong Number of Parameters235         command_bind("dcc resume", NULL, (SIGNAL_FUNC) cmd_dcc_resume);     /* Dangerous Function Cast */
 236 } 
 237  
 238 void dcc_resume_deinit(void)
 239 {
 240         signal_remove("ctcp msg dcc resume", (SIGNAL_FUNC) ctcp_msg_dcc_resume);
 241         signal_remove("ctcp msg dcc accept", (SIGNAL_FUNC) ctcp_msg_dcc_accept);
 242         command_unbind("dcc resume", (SIGNAL_FUNC) cmd_dcc_resume);   /* Dangerous Function Cast (ID: 1337.26783) */
 243 }




Change Warning 1336.26782 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: