Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at log-away.c:118

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 784.26230
Procedure: log_away_deinit
Trace: view
Modified: Thu Nov 26 10:57: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/log-away.c
   Enter log_away_deinit
 108         settings_add_str("log", "awaylog_file", awaylog_file);
 109         g_free(awaylog_file);
 110         settings_add_level("log", "awaylog_level", "msgs hilight");
 111  
 112         signal_add("log written", (SIGNAL_FUNC) sig_log_written);   /* Dangerous Function Cast (ID: 783.26229) */
 113         signal_add("away mode changed", (SIGNAL_FUNC) sig_away_changed);   /* Dangerous Function Cast (ID: 782.26228) */
 114 }
 115  
 116 void log_away_deinit(void) 
 117 {
Wrong Number of Parameters118         signal_remove("log written", (SIGNAL_FUNC) sig_log_written);     /* Dangerous Function Cast */
 119         signal_remove("away mode changed", (SIGNAL_FUNC) sig_away_changed);   /* Dangerous Function Cast (ID: 785.26231) */
 120 } 




Change Warning 784.26230 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: