commit | c2ea327d14801b4001716619c7d002caa37a1574 | [log] [tgz] |
---|---|---|
author | Florin Malita <fmalita@chromium.org> | Thu May 10 09:41:38 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu May 10 15:06:16 2018 +0000 |
tree | b1118c2c34630c407f641687090a93e004ebc3b4 | |
parent | 328490c6a1625ce51d0e81688e0c85c79c400d86 [diff] |
Validate readByteArrayAsData size Check that the reader has enough data before attempting to allocate the buffer. Also update to return nullptr on read failures. Change-Id: Ia1ea8f611bad95cf3a4493b12582ac3fa7c2b00f Reviewed-on: https://skia-review.googlesource.com/127129 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>