Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at textbuffer-commands.c:373

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4623.28207
Procedure: textbuffer_commands_init
Trace: view
Modified: Thu Nov 26 11:07:05 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/fe-text/textbuffer-commands.c
   Enter textbuffer_commands_init
 363         command_bind("scrollback levelclear", NULL, (SIGNAL_FUNC) cmd_scrollback_levelclear);   /* Dangerous Function Cast (ID: 4617.28203) */
 364         command_bind("scrollback goto", NULL, (SIGNAL_FUNC) cmd_scrollback_goto);   /* Dangerous Function Cast (ID: 4616.28202) */
 365         command_bind("scrollback home", NULL, (SIGNAL_FUNC) cmd_scrollback_home);   /* Dangerous Function Cast (ID: 4615.28201) */
 366         command_bind("scrollback end", NULL, (SIGNAL_FUNC) cmd_scrollback_end);   /* Dangerous Function Cast (ID: 4613.28200) */
 367         command_bind("scrollback status", NULL, (SIGNAL_FUNC) cmd_scrollback_status);   /* Dangerous Function Cast (ID: 4612.28199) */
 368  
 369         command_set_options("clear", "all");
 370         command_set_options("scrollback clear", "all");
 371         command_set_options("scrollback levelclear", "all -level");
 372  
Wrong Number of Parameters373         signal_add("away mode changed", (SIGNAL_FUNC) sig_away_changed);     /* Dangerous Function Cast */
 374 } 
 375  
 376 void textbuffer_commands_deinit(void)
 377 {
 378         command_unbind("clear", (SIGNAL_FUNC) cmd_clear);   /* Dangerous Function Cast (ID: 4637.28217) */
 379         command_unbind("window scroll", (SIGNAL_FUNC) cmd_window_scroll);   /* Dangerous Function Cast (ID: 4634.28216) */
 380         command_unbind("scrollback", (SIGNAL_FUNC) cmd_scrollback);   /* Dangerous Function Cast (ID: 4633.28215) */
 381         command_unbind("scrollback clear", (SIGNAL_FUNC) cmd_scrollback_clear);   /* Dangerous Function Cast (ID: 4632.28214) */
 382         command_unbind("scrollback levelclear", (SIGNAL_FUNC) cmd_scrollback_levelclear);   /* Dangerous Function Cast (ID: 4631.28213) */
 383         command_unbind("scrollback goto", (SIGNAL_FUNC) cmd_scrollback_goto);   /* Dangerous Function Cast (ID: 4629.28212) */




Change Warning 4623.28207 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: