Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-recode.c:195

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1103.1103
Procedure: fe_recode_init
Trace: View
Modified: Wed Sep 2 11:38:57 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/fe-recode.c
   Enter fe_recode_init
 185                 settings_set_str("recode_out_default_charset", recode_out_default);
 186         }
 187  
 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 {
Wrong Number of Parameters195         command_bind("recode", NULL, (SIGNAL_FUNC) fe_recode_cmd);     /* Dangerous Function Cast */
 196         command_bind("recode add", NULL, (SIGNAL_FUNC) fe_recode_add_cmd);   /* Dangerous Function Cast (ID: 1105.1105) */
 197         command_bind("recode remove", NULL, (SIGNAL_FUNC) fe_recode_remove_cmd);   /* Dangerous Function Cast (ID: 1104.1104) */
 198         signal_add_first("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 1106.1106) */
 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: 1108.1108) */
 205         command_unbind("recode add", (SIGNAL_FUNC) fe_recode_add_cmd);   /* Dangerous Function Cast (ID: 1109.1109) */




Change Warning 1103.1103 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: