[PATCH] D46274: [Support] Harden JSON against invalid UTF-8.
Sam McCall via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 06:19:23 PDT 2018
sammccall updated this revision to Diff 144871.
sammccall marked 4 inline comments as done.
sammccall added a comment.
Reject invalid codepoints (surrogates, high codepoints).
Add more comments around UTF8 validation.
Repository:
rL LLVM
https://reviews.llvm.org/D46274
Files:
include/llvm/Support/JSON.h
lib/Support/JSON.cpp
unittests/Support/JSONTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46274.144871.patch
Type: text/x-patch
Size: 10713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180502/18b80bc3/attachment.bin>
More information about the llvm-commits
mailing list