Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-modules.c:233

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1833.27134
Procedure: fe_modules_init
Trace: view
Modified: Thu Nov 26 11:01:27 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-modules.c
   Enter fe_modules_init
 223         cmd_params_free(free_arg);
 224 }
 225  
 226 void fe_modules_init(void) 
 227 {
 228         signal_add("module error", (SIGNAL_FUNC) sig_module_error);   /* Dangerous Function Cast (ID: 1827.27132) */
 229         signal_add("module loaded", (SIGNAL_FUNC) sig_module_loaded);   /* Dangerous Function Cast (ID: 1836.27130) */
 230         signal_add("module unloaded", (SIGNAL_FUNC) sig_module_unloaded);   /* Dangerous Function Cast (ID: 1829.27133) */
 231  
 232         command_bind("load", NULL, (SIGNAL_FUNC) cmd_load);   /* Dangerous Function Cast (ID: 1831.27131) */
Wrong Number of Parameters233         command_bind("unload", NULL, (SIGNAL_FUNC) cmd_unload);     /* Dangerous Function Cast */
 234 } 
 235  
 236 void fe_modules_deinit(void)
 237 {
 238         signal_remove("module error", (SIGNAL_FUNC) sig_module_error);   /* Dangerous Function Cast (ID: 1838.27135) */
 239         signal_remove("module loaded", (SIGNAL_FUNC) sig_module_loaded);   /* Dangerous Function Cast (ID: 1847.27139) */
 240         signal_remove("module unloaded", (SIGNAL_FUNC) sig_module_unloaded);   /* Dangerous Function Cast (ID: 1845.27138) */
 241  
 242         command_unbind("load", (SIGNAL_FUNC) cmd_load);   /* Dangerous Function Cast (ID: 1842.27137) */
 243         command_unbind("unload", (SIGNAL_FUNC) cmd_unload);   /* Dangerous Function Cast (ID: 1840.27136) */




Change Warning 1833.27134 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: