Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1845.27138
Procedure: fe_modules_deinit
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_deinit
 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) */
 233         command_bind("unload", NULL, (SIGNAL_FUNC) cmd_unload);   /* Dangerous Function Cast (ID: 1833.27134) */
 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) */
Wrong Number of Parameters240         signal_remove("module unloaded", (SIGNAL_FUNC) sig_module_unloaded);     /* Dangerous Function Cast */
 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) */
 244 } 
 245  
 246 #else /* !HAVE_GMODULE */ 
 247  
 248 static void cmd_load(const char *data)
 249 {
 250         printtext(NULL, NULL, MSGLEVEL_CLIENTERROR,




Change Warning 1845.27138 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: