Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-common-core.c:448

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1560.26981
Procedure: fe_common_core_finish_init
Trace: view
Modified: Thu Nov 26 11:00:49 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-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: 1561.26982) */
 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 1560.26981 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: