From 4cdbf6056de29e8c12c3b1b4c2c2fa286cf68049 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Thu, 28 Sep 2017 14:33:57 -0400 Subject: Avoid uninitialized memory in readByteArrayAsData Bug: 769134 readByteArray can fail (due to not having enough available or due to the wrong alignment). If it does, do not return an uninitialized block of memory. Further, drop the initial size check, which is covered by readByteArray. Add a test. Change-Id: Ia101697c5bb1ca3ae3df1795f37a74b2f602797d Reviewed-on: https://skia-review.googlesource.com/52742 Reviewed-by: Mike Reed Commit-Queue: Leon Scroggins --- resources/crbug769134.fil | Bin 0 -> 440 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/crbug769134.fil (limited to 'resources') diff --git a/resources/crbug769134.fil b/resources/crbug769134.fil new file mode 100644 index 0000000000..a8a79e8506 Binary files /dev/null and b/resources/crbug769134.fil differ -- cgit v1.2.3