Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at gui-readline.c:1032

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1758.1758
Procedure: gui_readline_init
Trace: View
Modified: Wed Sep 2 11:45:13 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-text/gui-readline.c
   Enter gui_readline_init
 1022         settings_add_int("misc", "paste_verify_line_count", 5);
 1023         settings_add_bool("misc", "paste_join_multiline", TRUE);
 1024         setup_changed();
 1025  
 1026         keyboard = keyboard_create(NULL);
 1027         key_configure_freeze();
 1028  
 1029         key_bind("key", NULL, " ", "space", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1762.1762) */
 1030         key_bind("key", NULL, "^M", "return", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1761.1761) */
 1031         key_bind("key", NULL, "^J", "return", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1759.1759) */
Wrong Number of Parameters1032         key_bind("key", NULL, "^H", "backspace", (SIGNAL_FUNC) key_combo);     /* Dangerous Function Cast */
 1033         key_bind("key", NULL, "^?", "backspace", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1757.1757) */
 1034         key_bind("key", NULL, "^I", "tab", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1756.1756) */
 1035  
 1036         /* meta */ 
 1037         key_bind("key", NULL, "^[", "meta", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1754.1754) */
 1038         key_bind("key", NULL, "meta-[", "meta2", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1752.1752) */
 1039         key_bind("key", NULL, "meta-O", "meta2", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1750.1750) */
 1040         key_bind("key", NULL, "meta-[O", "meta2", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 1748.1748) */
 1041  
 1042         /* arrow keys */ 




Change Warning 1758.1758 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: