Skip to content

Commit

Permalink
[JSON] Allow UTF-8 characters in parsed strings (rdkcentral#1532)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Wielders <[email protected]>
  • Loading branch information
sebaszm and pwielders authored Feb 26, 2024
1 parent 4fab2f2 commit 7034aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/core/JSON.h
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ namespace Core {
} else if (current == '\"') {
// We are done! leave this element.
finished = true;
} else if (current <= 0x1F) {
} else if (static_cast<std::make_unsigned<TCHAR>::type>(current) <= 0x1F) {
error = Error{ "Unescaped control character detected" };
} else {
// Just copy and onto the next;
Expand Down

0 comments on commit 7034aef

Please sign in to comment.