Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1480.26924
Procedure: command_history_deinit
Trace: view
Modified: Thu Nov 26 11:00: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/core/command-history.c
   Enter command_history_deinit
 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) */
 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) */
Wrong Number of Parameters287         signal_remove("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);     /* Dangerous Function Cast */
 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  
 291         command_history_destroy(global_history);
 292 } 




Change Warning 1480.26924 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: