(libX11-1.6.3) Logically Dead Code in XKBCvt.c
Submitted by Bhavi Dhingra
Assigned to Xorg Project Team
Description
Created attachment 118484 Removing Dead Code
In libX11-1.5.0.tv.17/src/xkb/XKBCvt.c, Line #77 (moved),
At condition keysym == 173UL, the value of keysym must be in one of the following intervals: {[65288,65291], [65293,65293], [65307,65307], [65417,65417], [65421,65421], [65450,65465], [65469,65469], [65535,65535]}.
The condition keysym == 173UL cannot be true.
Execution cannot reach the below else block,
else if (keysym == XK_hyphen) buffer[0] = (char) (XK_minus & 0xFF);
Hence, removing the dead-code.
Attachment 118484, "Removing Dead Code":
XKBCvt.patch