diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-07-10 11:51:26 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-07-10 11:51:26 +0000 |
commit | e6057bc689f380c245512b6809c3767d964407ed (patch) | |
tree | e0f7d83dc3c4a456ffe3a0376f85b741779465ae /clang/lib/Serialization/ASTReader.cpp | |
parent | ce5c19b623bc677c6e2eb0f7ab21c128e000a982 (diff) | |
download | bcm5719-llvm-e6057bc689f380c245512b6809c3767d964407ed.tar.gz bcm5719-llvm-e6057bc689f380c245512b6809c3767d964407ed.zip |
[Support] Harded JSON against invalid UTF-8.
Parsing invalid UTF-8 input is now a parse error.
Creating JSON values from invalid UTF-8 now triggers an assertion, and
(in no-assert builds) substitutes the unicode replacement character.
Strings retrieved from json::Value are always valid UTF-8.
llvm-svn: 336657
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
0 files changed, 0 insertions, 0 deletions