Skip to content
Snippets Groups Projects
Commit 79c572fb authored by FeepingCreature's avatar FeepingCreature Committed by FeepingCreature
Browse files

xkb: Avoid length-check failure on empty strings.

_XkbCheckRequestBounds assumes that from..to is at least one byte.
However, request strings can be empty, causing spurious failures in
XkbGetKbdByName calls. To avoid this, before checking bounds make
sure that the length is nonzero.
parent d23e4465
No related branches found
No related tags found
1 merge request!963xkb: Avoid length-check failure on empty strings.
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