Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 979.979
Procedure: fe_modules_init
Trace: View
Modified: Wed Sep 2 11:38:09 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
 218         if (module == NULL) {
 219                 printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
 220                             TXT_MODULE_NOT_LOADED, rootmodule, submodule);
 221         }
 222  
 223         cmd_params_free(free_arg);
 224 }
 225  
 226 void fe_modules_init(void) 
 227 {
Wrong Number of Parameters228         signal_add("module error", (SIGNAL_FUNC) sig_module_error);     /* Dangerous Function Cast */
 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) */
 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) */




Change Warning 979.979 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: