Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-common-core.c:448

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 829.829
Procedure: fe_common_core_finish_init
Trace: View
Modified: Wed Sep 2 11:37: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-common-core.c
   Enter fe_common_core_finish_init
 438                 /* override host name found from setup */ 
 439                 settings_set_str("hostname", cmdline_hostname);
 440                 setup_changed = TRUE;
 441         }
 442  
 443         sig_setup_changed();
 444         signal_add_first("setup changed", (SIGNAL_FUNC) sig_setup_changed);   /* Dangerous Function Cast (ID: 830.830) */
 445  
 446         /* _after_ windows are created.. */ 
 447 #if GLIB_CHECK_VERSION(2,6,0) 
Wrong Number of Parameters448         g_log_set_default_handler((GLogFunc) glog_func, NULL);     /* Dangerous Function Cast */
 449 #else 
 450         g_log_set_handler(G_LOG_DOMAIN,
 451                           (GLogLevelFlags) (G_LOG_LEVEL_CRITICAL |
 452                                             G_LOG_LEVEL_WARNING),
 453                           (GLogFunc) glog_func, NULL);
 454         g_log_set_handler("GLib",
 455                           (GLogLevelFlags) (G_LOG_LEVEL_CRITICAL |
 456                                             G_LOG_LEVEL_WARNING),
 457                           (GLogFunc) glog_func, NULL); /* send glib errors to the same place */ 
 458 #endif 




Change Warning 829.829 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: