Skip to content
Snippets Groups Projects
Commit a3c0b5db authored by Keith Packard's avatar Keith Packard
Browse files

Copy locale modifiers when creating XimInstCallback [v2]


Locale modifiers may be freed whenever XSetLocaleModifiers gets
called, even if the locale hasn't changed. This means that we cannot
save a pointer to those modifiers in the XimInstCallback record and
must, instead, make a copy of them instead.

This fixes a problem uncovered when running wish under libasan as
follows (on current Debian unstable):

	$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.6 wish

Reported-by: default avatarVittorio Zecca <zeccav@gmail.com>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>

v2:
	Remove incorrect 'else' token found by @alanc
parent 960e2e0c
No related branches found
No related tags found
1 merge request!61Copy locale modifiers when creating XimInstCallback
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment