commit | fdc62f8eb593ff1da731dc28e197fe32ddb14779 | [log] [tgz] |
---|---|---|
author | Sergey Ulanov <sergeyu@google.com> | Tue Aug 01 19:51:00 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Aug 01 19:51:00 2017 |
tree | ba7aa10266f3646ee6de405e475f0a1e4120ee25 | |
parent | aeed1e4da5431f08168293a3d69369710319309b [diff] |
Fix Fuchsia implementation of base::RandBytes() to allow empty buffer. base::RandBytes() may be called with output_length=0 and all implementations supported this case, except Fuchsia. On Fuchsia the function was crashing due to a failed CHECK(). This was breaking MemoryDataSourceTest.EmptySource test. Bug: 737802 Change-Id: Ib9ec20a82dd6966a146f0c66936e232c061466a5 Reviewed-on: https://chromium-review.googlesource.com/595012 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Scott Graham <scottmg@chromium.org> Cr-Commit-Position: refs/heads/master@{#491086}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .