forked from phuang/ibus
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/ibuscompose: Check algorithm dead key by 9 length
This change fixes the D-Bus timeout by a long compose preedit text. check_normalize_nfc() calculates the factorical of the compse preedit length and assigne the value to an INT variable and it could excceed the MAX_INT. Probably I think the length of the compose algorizhm dead key would be enough 9. I.e. 9! == 46320 <= SHRT_MAX == 32767 BUG=#2385
- Loading branch information
Showing
1 changed file
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters