Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 916.916
Procedure: fe_log_init
Trace: View
Modified: Wed Sep 2 11:37:46 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
 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) */
 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) */
Wrong Number of Parameters736         signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);     /* Dangerous Function Cast */
 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) */
 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");




Change Warning 916.916 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: