Path: utzoo!attcan!uunet!mcvax!inria!mirsa!daniel From: daniel@mirsa.inria.fr (Daniel Dardailler) Newsgroups: comp.windows.x Subject: bug in Xlib Message-ID: <85@mirsa.inria.fr> Date: 29 Nov 88 08:52:46 GMT Reply-To: daniel@mirsa.inria.fr (Daniel Dardailler) Organization: Bull Research Center. Sophia Antipolis. France Lines: 50 ~s Xlib Bug X Window System Bug Report xbugs@expo.lcs.mit.edu VERSION: R2,R3 CLIENT MACHINE and OPERATING SYSTEM: Any DISPLAY: Any WINDOW MANAGER: Any AREA: Xlib SYNOPSIS: Memory violation in routine Initialize(dpy) from XKeyBind.c DESCRIPTION: If the depth of the keycode/keysym map coming from the X Server is 1, this table, allocated with XGetKeyboardMapping, is re-allocated with double size ( /* need at least two per keycode, to have room for case conversion */ ). The bug is that the depth but *also* the number of keycode entry are multiplied by 2. code : ---- line #184, #185 of $TOP/lib/X/XKeybind.c per = 2; n <<= 1; REPEAT BY: Looking in the file. SAMPLE FIX: Remove the line #185. -- Daniel Dardailler | Email : daniel@mirsa.inria.fr BULL Centre de Sophia Antipolis | Phone : (33) 93 65 77 71 2004, Route des Lucioles | Telex : 97 00 50 F 06565 Valbonne CEDEX France | Fax : (33) 93 65 77 66