xorg-libx11/modules
Benno Schulenberg 623b77d4f3 imDefLkup: verify that a pointer isn't NULL before using it
It is possible for _XimICOfXICID() to return NULL, so it is necessary
to check this isn't actually the case before dereferencing the pointer.
All other callers of _XimICOfXICID() do this check too.

(The check itself is ugly, but it follows the style of the code in the
rest of the module.)

Fixes issue #45.

Reported-by: Bhavi Dhingra

Original-patch-by: Bhavi Dhingra

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2022-02-14 11:47:46 +01:00
..
im imDefLkup: verify that a pointer isn't NULL before using it 2022-02-14 11:47:46 +01:00
lc i18n: use memcpy instead of strncpy on unterminated char arrays 2020-08-28 20:29:27 +00:00
om Avoid NULL pointer deref. Fixes issue #47. 2021-12-03 02:56:43 +00:00
Makefile.am Add missing Makefile.am to lib/X11/modules 2005-07-15 04:27:32 +00:00