summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-07-10 11:51:26 +0000
committerSam McCall <sam.mccall@gmail.com>2018-07-10 11:51:26 +0000
commite6057bc689f380c245512b6809c3767d964407ed (patch)
treee0f7d83dc3c4a456ffe3a0376f85b741779465ae /clang/lib/Serialization/ASTReader.cpp
parentce5c19b623bc677c6e2eb0f7ab21c128e000a982 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud