1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Made CharPointer_UTF8::isValidString reject some sequences that weren't being detected as illegal

This commit is contained in:
jules 2016-02-25 16:50:11 +00:00
parent 6149a4f649
commit efd5bd36cb

View file

@ -520,6 +520,9 @@ public:
return false;
}
if (numExtraValues == 0)
return false;
maxBytesToRead -= numExtraValues;
if (maxBytesToRead < 0)
return false;