Fix invalid StringPiece to string conversion.
Found by the newly-added fuzzer. Fortunately this is not a problem for any existing callers, which only ever passed a StringPiece derived from a full std::string (which promises to be NUL-terminated). Bug: 954703, 954760 Change-Id: I274de66b785d9f272a25264980e21878c5a77872 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1577580Reviewed-by:Matt Mueller <mattm@chromium.org> Commit-Queue: Matt Mueller <mattm@chromium.org> Commit-Queue: David Benjamin <davidben@chromium.org> Auto-Submit: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/master@{#652868}
Showing
Please register or sign in to comment