Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at command-history.c:280

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1474.26919
Procedure: command_history_init
Trace: view
Modified: Thu Nov 26 11:00:33 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-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: 1476.26921) */
 279         signal_add("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);   /* Dangerous Function Cast (ID: 1475.26920) */
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: 1472.26918) */
 282 } 
 283  
 284 void command_history_deinit(void)
 285 {
 286         signal_remove("window created", (SIGNAL_FUNC) sig_window_created);   /* Dangerous Function Cast (ID: 1482.26925) */
 287         signal_remove("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);   /* Dangerous Function Cast (ID: 1480.26924) */
 288         signal_remove("window history changed", (SIGNAL_FUNC) sig_window_history_changed);   /* Dangerous Function Cast (ID: 1479.26923) */
 289         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 1478.26922) */
 290  




Change Warning 1474.26919 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: