Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at gui-readline.c:1034

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3770.27908
Procedure: gui_readline_init
Trace: view
Modified: Thu Nov 26 11:05:29 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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-text/gui-readline.c
   Enter gui_readline_init
 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: 3785.27914) */
 1030         key_bind("key", NULL, "^M", "return", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3783.27913) */
 1031         key_bind("key", NULL, "^J", "return", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3778.27911) */
 1032         key_bind("key", NULL, "^H", "backspace", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3775.27910) */
 1033         key_bind("key", NULL, "^?", "backspace", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3772.27909) */
Wrong Number of Parameters1034         key_bind("key", NULL, "^I", "tab", (SIGNAL_FUNC) key_combo);     /* Dangerous Function Cast */
 1035  
 1036         /* meta */ 
 1037         key_bind("key", NULL, "^[", "meta", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3765.27906) */
 1038         key_bind("key", NULL, "meta-[", "meta2", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3761.27904) */
 1039         key_bind("key", NULL, "meta-O", "meta2", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3756.27902) */
 1040         key_bind("key", NULL, "meta-[O", "meta2", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3751.27900) */
 1041  
 1042         /* arrow keys */ 
 1043         key_bind("key", NULL, "meta2-A", "up", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3746.27898) */
 1044         key_bind("key", NULL, "meta2-B", "down", (SIGNAL_FUNC) key_combo);   /* Dangerous Function Cast (ID: 3743.27897) */




Change Warning 3770.27908 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: