Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 984.984
Procedure: fe_modules_deinit
Trace: View
Modified: Wed Sep 2 11:38:11 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_deinit
 233         command_bind("unload", NULL, (SIGNAL_FUNC) cmd_unload);   /* Dangerous Function Cast (ID: 981.981) */
 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) */
Wrong Number of Parameters243         command_unbind("unload", (SIGNAL_FUNC) cmd_unload);     /* Dangerous Function Cast */
 244 
 245  
 246 #else /* !HAVE_GMODULE */ 
 247  
 248 static void cmd_load(const char *data)
 249 {
 250         printtext(NULL, NULL, MSGLEVEL_CLIENTERROR,
 251                   "Dynamic modules loading not supported");
 252 }
 253  




Change Warning 984.984 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: