Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at textbuffer-commands.c:360

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2055.2055
Procedure: textbuffer_commands_init
Trace: View
Modified: Wed Sep 2 11:48:35 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-text/textbuffer-commands.c
   Enter textbuffer_commands_init
 350                 WINDOW_REC *rec = tmp->data;
 351  
 352                 textbuffer_view_set_bookmark_bottom(WINDOW_GUI(rec)->view,
 353                                                     "lastlog_last_away");
 354         }
 355 }
 356  
 357 void textbuffer_commands_init(void) 
 358 {
 359         command_bind("clear", NULL, (SIGNAL_FUNC) cmd_clear);   /* Dangerous Function Cast (ID: 2047.2047) */
Wrong Number of Parameters360         command_bind("window scroll", NULL, (SIGNAL_FUNC) cmd_window_scroll);     /* Dangerous Function Cast */
 361         command_bind("scrollback", NULL, (SIGNAL_FUNC) cmd_scrollback);   /* Dangerous Function Cast (ID: 2054.2054) */
 362         command_bind("scrollback clear", NULL, (SIGNAL_FUNC) cmd_scrollback_clear);   /* Dangerous Function Cast (ID: 2053.2053) */
 363         command_bind("scrollback levelclear", NULL, (SIGNAL_FUNC) cmd_scrollback_levelclear);   /* Dangerous Function Cast (ID: 2052.2052) */
 364         command_bind("scrollback goto", NULL, (SIGNAL_FUNC) cmd_scrollback_goto);   /* Dangerous Function Cast (ID: 2051.2051) */
 365         command_bind("scrollback home", NULL, (SIGNAL_FUNC) cmd_scrollback_home);   /* Dangerous Function Cast (ID: 2050.2050) */
 366         command_bind("scrollback end", NULL, (SIGNAL_FUNC) cmd_scrollback_end);   /* Dangerous Function Cast (ID: 2049.2049) */
 367         command_bind("scrollback status", NULL, (SIGNAL_FUNC) cmd_scrollback_status);   /* Dangerous Function Cast (ID: 2048.2048) */
 368  
 369         command_set_options("clear", "all");
 370         command_set_options("scrollback clear", "all");




Change Warning 2055.2055 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: