Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-recode.c:198

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2132.27255
Procedure: fe_recode_init
Trace: view
Modified: Thu Nov 26 11:01:59 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/fe-recode.c
   Enter fe_recode_init
 188         g_free(old_term_charset);
 189         g_free(old_recode_fallback);
 190         g_free(old_recode_out_default);
 191 }
 192  
 193 void fe_recode_init (void) 
 194 {
 195         command_bind("recode", NULL, (SIGNAL_FUNC) fe_recode_cmd);   /* Dangerous Function Cast (ID: 2139.27257) */
 196         command_bind("recode add", NULL, (SIGNAL_FUNC) fe_recode_add_cmd);   /* Dangerous Function Cast (ID: 2137.27258) */
 197         command_bind("recode remove", NULL, (SIGNAL_FUNC) fe_recode_remove_cmd);   /* Dangerous Function Cast (ID: 2134.27256) */
Wrong Number of Parameters198         signal_add_first("setup changed", (SIGNAL_FUNC) read_settings);     /* Dangerous Function Cast */
 199         read_settings();
 200 } 
 201  
 202 void fe_recode_deinit (void)
 203 {
 204         command_unbind("recode", (SIGNAL_FUNC) fe_recode_cmd);   /* Dangerous Function Cast (ID: 2141.27259) */
 205         command_unbind("recode add", (SIGNAL_FUNC) fe_recode_add_cmd);   /* Dangerous Function Cast (ID: 2144.27260) */
 206         command_unbind("recode remove", (SIGNAL_FUNC) fe_recode_remove_cmd);   /* Dangerous Function Cast (ID: 2149.27261) */
 207         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 2146.27262) */
 208 }




Change Warning 2132.27255 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: