(svn r15637) -Fix: when you try to protect something from doing something it shouldn't be doing, make sure that the actions happening after that, doesn't start doing what it shouldn't be doing. This of course would only happen in rare corner cases.
This commit is contained in:
@@ -294,7 +294,7 @@ static void HandleBiDiAndArabicShapes(char *buffer, const char *lastof)
|
|||||||
|
|
||||||
char *t = buffer;
|
char *t = buffer;
|
||||||
size_t length = 0;
|
size_t length = 0;
|
||||||
while (*t != '\0' && length < lengthof(input_output)) {
|
while (*t != '\0' && length < lengthof(input_output) - 1) {
|
||||||
WChar tmp;
|
WChar tmp;
|
||||||
t += Utf8Decode(&tmp, t);
|
t += Utf8Decode(&tmp, t);
|
||||||
input_output[length++] = tmp;
|
input_output[length++] = tmp;
|
||||||
|
Reference in New Issue
Block a user