Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at keyboard.c:857

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1085.1085
Procedure: keyboard_init
Trace: View
Modified: Wed Sep 2 11:38:51 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/keyboard.c
   Enter keyboard_init
 847         key_bind("command", "Run any command", NULL, NULL, (SIGNAL_FUNC) sig_command);   /* Dangerous Function Cast (ID: 1084.1084) */
 848         key_bind("key", "Specify name for key binding", NULL, NULL, (SIGNAL_FUNC) sig_key);   /* Dangerous Function Cast (ID: 1083.1083) */
 849         key_bind("multi", "Run multiple commands", NULL, NULL, (SIGNAL_FUNC) sig_multi);   /* Dangerous Function Cast (ID: 1082.1082) */
 850         key_bind("nothing", "Do nothing", NULL, NULL, (SIGNAL_FUNC) sig_nothing);   /* Dangerous Function Cast (ID: 1081.1081) */
 851  
 852         /* read the keyboard config when all key binds are known */ 
 853         signal_add("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);   /* Dangerous Function Cast (ID: 1080.1080) */
 854         signal_add("setup reread", (SIGNAL_FUNC) read_keyboard_config);   /* Dangerous Function Cast (ID: 1079.1079) */
 855         signal_add("complete command bind", (SIGNAL_FUNC) sig_complete_bind);   /* Dangerous Function Cast (ID: 1078.1078) */
 856  
Wrong Number of Parameters857         command_bind("bind", NULL, (SIGNAL_FUNC) cmd_bind);     /* Dangerous Function Cast */
 858         command_set_options("bind", "delete list");
 859 
 860  
 861 void keyboard_deinit(void)
 862 {
 863         key_unbind("command", (SIGNAL_FUNC) sig_command);   /* Dangerous Function Cast (ID: 1089.1089) */
 864         key_unbind("key", (SIGNAL_FUNC) sig_key);   /* Dangerous Function Cast (ID: 1088.1088) */
 865         key_unbind("multi", (SIGNAL_FUNC) sig_multi);   /* Dangerous Function Cast (ID: 1096.1096) */
 866         key_unbind("nothing", (SIGNAL_FUNC) sig_nothing);   /* Dangerous Function Cast (ID: 1095.1095) */
 867  




Change Warning 1085.1085 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: