mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
xkb: ddxLoad: don't crash the server when strcpy() fails
No need for RunXkbComp() to hard-crash (by calling XNFstrdup()) the server if strdup() fails to allocate more memory - it's callers already handling the situation gracefully. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -194,7 +194,7 @@ RunXkbComp(xkbcomp_buffer_callback callback, void *userdata)
|
||||
#ifdef WIN32
|
||||
unlink(tmpname);
|
||||
#endif
|
||||
return XNFstrdup(keymap);
|
||||
return strdup(keymap);
|
||||
}
|
||||
else {
|
||||
LogMessage(X_ERROR, "Error compiling keymap (%s) executing '%s'\n",
|
||||
|
||||
Reference in New Issue
Block a user