Bug 1002343 - Overlong key names are not null-terminated
Summary: Overlong key names are not null-terminated
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xorg-x11-xkb-utils
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Hutterer
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-29 00:06 UTC by Peter Hutterer
Modified: 2014-03-05 05:07 UTC (History)
0 users

Fixed In Version: xorg-x11-xkb-utils-7.7-8.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-05 05:07:40 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 66345 0 None None None Never

Description Peter Hutterer 2013-08-29 00:06:14 UTC
Description of problem:
From https://bugs.freedesktop.org/show_bug.cgi?id=66345

XKB key names are limited to four octets.  Initially I didn't know that,
and tried to use longer names, like this:

$ cat t0.xkb
xkb_keymap {
xkb_keycodes "test_keycodes" {
        minimum = 8;
        maximum = 255;
        <FOOBAR> = 10;
};
xkb_types "complete" { include "complete" };
xkb_compatibility "complete" { include "complete" };
xkb_symbols "us" { include "us" };
xkb_geometry "kinesis" { include "kinesis" };
};
$ xkbcomp t0.xkb t0.xkm
syntax error: line 5 of t0.xkb
last scanned symbol is: FOOBARm
Errors encountered in t0.xkb; not compiled.


Version-Release number of selected component (if applicable):
xorg-x11-xkb-utils-7.7-7.el7

Comment 2 Peter Hutterer 2013-08-29 04:45:22 UTC
MODIFIED

xorg-x11-xkb-utils-7.7-8.el7 is available in brew


Note You need to log in before you can comment on or make changes to this bug.