Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-log.c:740

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 912.912
Procedure: fe_log_init
Trace: View
Modified: Wed Sep 2 11:37:44 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-log.c
   Enter fe_log_init
 730         command_bind("log stop", NULL, (SIGNAL_FUNC) cmd_log_stop);   /* Dangerous Function Cast (ID: 922.922) */
 731         command_bind("window log", NULL, (SIGNAL_FUNC) cmd_window_log);   /* Dangerous Function Cast (ID: 921.921) */
 732         command_bind("window logfile", NULL, (SIGNAL_FUNC) cmd_window_logfile);   /* Dangerous Function Cast (ID: 920.920) */
 733         signal_add_first("print text", (SIGNAL_FUNC) sig_printtext);   /* Dangerous Function Cast (ID: 919.919) */
 734         signal_add("window item remove", (SIGNAL_FUNC) sig_window_item_remove);   /* Dangerous Function Cast (ID: 918.918) */
 735         signal_add("window refnum changed", (SIGNAL_FUNC) sig_window_refnum_changed);   /* Dangerous Function Cast (ID: 917.917) */
 736         signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 916.916) */
 737         signal_add("log locked", (SIGNAL_FUNC) sig_log_locked);   /* Dangerous Function Cast (ID: 915.915) */
 738         signal_add("log create failed", (SIGNAL_FUNC) sig_log_create_failed);   /* Dangerous Function Cast (ID: 914.914) */
 739         signal_add("log new", (SIGNAL_FUNC) sig_log_new);   /* Dangerous Function Cast (ID: 913.913) */
Wrong Number of Parameters740         signal_add("log config read", (SIGNAL_FUNC) sig_log_config_read);     /* Dangerous Function Cast */
 741         signal_add("log config save", (SIGNAL_FUNC) sig_log_config_save);   /* Dangerous Function Cast (ID: 911.911) */
 742         signal_add("awaylog show", (SIGNAL_FUNC) sig_awaylog_show);   /* Dangerous Function Cast (ID: 910.910) */
 743         signal_add("theme destroyed", (SIGNAL_FUNC) sig_theme_destroyed);   /* Dangerous Function Cast (ID: 908.908) */
 744         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 907.907) */
 745  
 746         command_set_options("log open", "noopen autoopen -targets window colors");
 747 
 748  
 749 void fe_log_deinit(void)
 750 {




Change Warning 912.912 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: