Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-log.c:744

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1724.27059
Procedure: fe_log_init
Trace: view
Modified: Thu Nov 26 11:01: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/core/fe-log.c
   Enter fe_log_init
 734         signal_add("window item remove", (SIGNAL_FUNC) sig_window_item_remove);   /* Dangerous Function Cast (ID: 1752.27070) */
 735         signal_add("window refnum changed", (SIGNAL_FUNC) sig_window_refnum_changed);   /* Dangerous Function Cast (ID: 1749.27069) */
 736         signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 1746.27068) */
 737         signal_add("log locked", (SIGNAL_FUNC) sig_log_locked);   /* Dangerous Function Cast (ID: 1743.27067) */
 738         signal_add("log create failed", (SIGNAL_FUNC) sig_log_create_failed);   /* Dangerous Function Cast (ID: 1741.27066) */
 739         signal_add("log new", (SIGNAL_FUNC) sig_log_new);   /* Dangerous Function Cast (ID: 1738.27065) */
 740         signal_add("log config read", (SIGNAL_FUNC) sig_log_config_read);   /* Dangerous Function Cast (ID: 1736.27064) */
 741         signal_add("log config save", (SIGNAL_FUNC) sig_log_config_save);   /* Dangerous Function Cast (ID: 1734.27063) */
 742         signal_add("awaylog show", (SIGNAL_FUNC) sig_awaylog_show);   /* Dangerous Function Cast (ID: 1732.27062) */
 743         signal_add("theme destroyed", (SIGNAL_FUNC) sig_theme_destroyed);   /* Dangerous Function Cast (ID: 1726.27060) */
Wrong Number of Parameters744         signal_add("setup changed", (SIGNAL_FUNC) read_settings);     /* Dangerous Function Cast */
 745  
 746         command_set_options("log open", "noopen autoopen -targets window colors");
 747 } 
 748  
 749 void fe_log_deinit(void)
 750 {
 751         g_source_remove(autoremove_tag);
 752         if (log_theme_name != NULL)
 753                 signal_remove("print format", (SIGNAL_FUNC) sig_print_format);   /* Dangerous Function Cast (ID: 1775.27079) */
 754  




Change Warning 1724.27059 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: