mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 23:08:28 +00:00
unix: Fix infinite looping in SDL_FriBidi_Process if len > 127
start/end should be FriBidiStrIndex here -- using FriBidiLevel makes them `signed char` and the loop here will become infinite if `end` is > 127.
This commit is contained in:
committed by
Sam Lantinga
parent
d83e7bf79e
commit
0ffb0bdd87
@@ -84,8 +84,8 @@ char *SDL_FriBidi_Process(SDL_FriBidi *fribidi, char *utf8, ssize_t utf8_len, bo
|
||||
char *result;
|
||||
FriBidiStrIndex len;
|
||||
FriBidiLevel max_level;
|
||||
FriBidiLevel start;
|
||||
FriBidiLevel end;
|
||||
FriBidiStrIndex start;
|
||||
FriBidiStrIndex end;
|
||||
FriBidiParType direction;
|
||||
FriBidiParType str_direction;
|
||||
unsigned int i;
|
||||
|
||||
Reference in New Issue
Block a user