Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-modules.c:233

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 981.981
Procedure: fe_modules_init
Trace: View
Modified: Wed Sep 2 11:38:10 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-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: 979.979) */
 229         signal_add("module loaded", (SIGNAL_FUNC) sig_module_loaded);   /* Dangerous Function Cast (ID: 982.982) */
 230         signal_add("module unloaded", (SIGNAL_FUNC) sig_module_unloaded);   /* Dangerous Function Cast (ID: 978.978) */
 231  
 232         command_bind("load", NULL, (SIGNAL_FUNC) cmd_load);   /* Dangerous Function Cast (ID: 980.980) */
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: 983.983) */
 239         signal_remove("module loaded", (SIGNAL_FUNC) sig_module_loaded);   /* Dangerous Function Cast (ID: 987.987) */
 240         signal_remove("module unloaded", (SIGNAL_FUNC) sig_module_unloaded);   /* Dangerous Function Cast (ID: 986.986) */
 241  
 242         command_unbind("load", (SIGNAL_FUNC) cmd_load);   /* Dangerous Function Cast (ID: 985.985) */
 243         command_unbind("unload", (SIGNAL_FUNC) cmd_unload);   /* Dangerous Function Cast (ID: 984.984) */




Change Warning 981.981 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: