Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-resume.c:235

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 630.630
Procedure: dcc_resume_init
Trace: View
Modified: Wed Sep 2 11:35:43 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/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: 631.631) */
 243 }




Change Warning 630.630 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: