Fix variable type in base_json_reader_fuzzer.cc.
Previous version of fuzzer used std::string, which in C++11 nul-terminates, but actual caller expects base::StringPiece which does not. This failed to catch an overflow bug, so switch to using base::StringPiece. Also revert "base_json_reader_fuzzer: Sanitizer-poison memory around the input buffer." since the change is unneeded. This reverts commit 845bbd0e. R=rsesek@chromium.org Change-Id: I8abffc3f2931818711119406effa685b1d368659 Reviewed-on: https://chromium-review.googlesource.com/959564 Commit-Queue: Abhishek Arya <inferno@chromium.org> Reviewed-by:Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#542623}
Showing
Please register or sign in to comment