Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at log-away.c:113

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 75.75
Procedure: log_away_init
Trace: View
Modified: Wed Sep 2 11:31:50 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/core/log-away.c
   Enter log_away_init
 103         awaylog = NULL;
 104         away_filepos = 0;
 105         away_msgs = 0;
 106  
 107         awaylog_file = g_strconcat(get_irssi_dir(), "/away.log", NULL);
 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: 76.76) */
Wrong Number of Parameters113         signal_add("away mode changed", (SIGNAL_FUNC) sig_away_changed);     /* Dangerous Function Cast */
 114 
 115  
 116 void log_away_deinit(void)
 117 {
 118         signal_remove("log written", (SIGNAL_FUNC) sig_log_written);   /* Dangerous Function Cast (ID: 77.77) */
 119         signal_remove("away mode changed", (SIGNAL_FUNC) sig_away_changed);   /* Dangerous Function Cast (ID: 78.78) */
 120 }




Change Warning 75.75 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: