Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4631.28213
Procedure: textbuffer_commands_deinit
Trace: view
Modified: Thu Nov 26 11:07:08 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_deinit
 372  
 373         signal_add("away mode changed", (SIGNAL_FUNC) sig_away_changed);   /* Dangerous Function Cast (ID: 4623.28207) */
 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) */
Wrong Number of Parameters382         command_unbind("scrollback levelclear", (SIGNAL_FUNC) cmd_scrollback_levelclear);     /* Dangerous Function Cast */
 383         command_unbind("scrollback goto", (SIGNAL_FUNC) cmd_scrollback_goto);   /* Dangerous Function Cast (ID: 4629.28212) */
 384         command_unbind("scrollback home", (SIGNAL_FUNC) cmd_scrollback_home);   /* Dangerous Function Cast (ID: 4628.28211) */
 385         command_unbind("scrollback end", (SIGNAL_FUNC) cmd_scrollback_end);   /* Dangerous Function Cast (ID: 4627.28210) */
 386         command_unbind("scrollback status", (SIGNAL_FUNC) cmd_scrollback_status);   /* Dangerous Function Cast (ID: 4625.28209) */
 387  
 388         signal_remove("away mode changed", (SIGNAL_FUNC) sig_away_changed);   /* Dangerous Function Cast (ID: 4624.28208) */
 389 } 




Change Warning 4631.28213 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: