symbols: fix index-out-of-bounds in FindAutomaticType
authorRan Benita <ran234@gmail.com>
Mon, 24 Sep 2012 08:16:09 +0000 (10:16 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 24 Sep 2012 08:19:02 +0000 (10:19 +0200)
commiteaf9515229289b1ad1f7d8f202b2a66d735ef36a
tree03c03afbbdf12f5ae11bd5aa466ef07a9b480213
parent504853de3b6821c916a50e8dbe11c7c9aca0ffab
symbols: fix index-out-of-bounds in FindAutomaticType

If we enter this branch, we have 3 <= width <= 4, so if the width is 3
than syms[3] is out of bounds.

Happily inherited from xkbcomp.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/symbols.c