Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1476.26921
Procedure: command_history_init
Trace: view
Modified: Thu Nov 26 11:00:34 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
 268 void command_history_init(void) 
 269 {
 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();
Wrong Number of Parameters278         signal_add("window created", (SIGNAL_FUNC) sig_window_created);     /* Dangerous Function Cast */
 279         signal_add("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);   /* Dangerous Function Cast (ID: 1475.26920) */
 280         signal_add("window history changed", (SIGNAL_FUNC) sig_window_history_changed);   /* Dangerous Function Cast (ID: 1474.26919) */
 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) */




Change Warning 1476.26921 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: