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:
parent
6149a4f649
commit
efd5bd36cb
1 changed files with 3 additions and 0 deletions
|
|
@ -520,6 +520,9 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
if (numExtraValues == 0)
|
||||
return false;
|
||||
|
||||
maxBytesToRead -= numExtraValues;
|
||||
if (maxBytesToRead < 0)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue