Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at command-history.c:280

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 766.766
Procedure: command_history_init
Trace: View
Modified: Wed Sep 2 11:36:42 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-common/core/command-history.c
   Enter command_history_init
 270         settings_add_int("history", "max_command_history", 100);
 271         settings_add_bool("history", "window_history", FALSE);
 272  
 273         special_history_func_set(special_history_func);
 274  
 275         global_history = command_history_create(NULL);
 276  
 277         read_settings();
 278         signal_add("window created", (SIGNAL_FUNC) sig_window_created);   /* Dangerous Function Cast (ID: 769.769) */
 279         signal_add("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);   /* Dangerous Function Cast (ID: 768.768) */
Wrong Number of Parameters280         signal_add("window history changed", (SIGNAL_FUNC) sig_window_history_changed);     /* Dangerous Function Cast */
 281         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 767.767) */
 282 
 283  
 284 void command_history_deinit(void)
 285 {
 286         signal_remove("window created", (SIGNAL_FUNC) sig_window_created);   /* Dangerous Function Cast (ID: 773.773) */
 287         signal_remove("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);   /* Dangerous Function Cast (ID: 772.772) */
 288         signal_remove("window history changed", (SIGNAL_FUNC) sig_window_history_changed);   /* Dangerous Function Cast (ID: 771.771) */
 289         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 770.770) */
 290  




Change Warning 766.766 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: