Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 920.920
Procedure: fe_log_init
Trace: View
Modified: Wed Sep 2 11:37:47 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
 722         autolog_level = 0;
 723         log_theme_name = NULL;
 724         read_settings();
 725  
 726         command_bind("log", NULL, (SIGNAL_FUNC) cmd_log);   /* Dangerous Function Cast (ID: 926.926) */
 727         command_bind("log open", NULL, (SIGNAL_FUNC) cmd_log_open);   /* Dangerous Function Cast (ID: 925.925) */
 728         command_bind("log close", NULL, (SIGNAL_FUNC) cmd_log_close);   /* Dangerous Function Cast (ID: 924.924) */
 729         command_bind("log start", NULL, (SIGNAL_FUNC) cmd_log_start);   /* Dangerous Function Cast (ID: 923.923) */
 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) */
Wrong Number of Parameters732         command_bind("window logfile", NULL, (SIGNAL_FUNC) cmd_window_logfile);     /* Dangerous Function Cast */
 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) */
 740         signal_add("log config read", (SIGNAL_FUNC) sig_log_config_read);   /* Dangerous Function Cast (ID: 912.912) */
 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) */




Change Warning 920.920 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: