xorg-libx11/modules
Yichao Yu 93fce3f4e7
Fix size calculation in _XimAttributeToValue.
The check here guards the read below.
For `XimType_XIMStyles`, these are `num` of `CARD32` and for `XimType_XIMHotKeyTriggers`
these are `num` of `XIMTRIGGERKEY` ref[1] which is defined as 3 x `CARD32`.
(There are data after the `XIMTRIGGERKEY` according to the spec but they are not read by this
function and doesn't need to be checked.)

The old code here used the native datatype size instead of the wire protocol size causing
the check to always fail.

Also fix the size calculation for the header (size). It is 2 x CARD16 for both types
despite the unused `CARD16` for `XimType_XIMStyles`.

[1] https://www.x.org/releases/X11R7.6/doc/libX11/specs/XIM/xim.html#Input_Method_Styles

This fixes a regression caused by 388b303c62 in 1.6.10.

Fix #116
2020-08-02 13:43:58 -04:00
..
im Fix size calculation in _XimAttributeToValue. 2020-08-02 13:43:58 -04:00
lc lcDefConv.c: fix use before check 2014-07-06 10:12:20 -07:00
om Fix spelling/wording issues 2020-07-22 15:19:58 -07:00
Makefile.am Add missing Makefile.am to lib/X11/modules 2005-07-15 04:27:32 +00:00