Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 773.773
Procedure: command_history_deinit
Trace: View
Modified: Wed Sep 2 11:36:45 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_deinit
 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) */
 280         signal_add("window history changed", (SIGNAL_FUNC) sig_window_history_changed);   /* Dangerous Function Cast (ID: 766.766) */
 281         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 767.767) */
 282 }
 283  
 284 void command_history_deinit(void) 
 285 {
Wrong Number of Parameters286         signal_remove("window created", (SIGNAL_FUNC) sig_window_created);     /* Dangerous Function Cast */
 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  
 291         command_history_destroy(global_history);
 292 




Change Warning 773.773 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: