Avoid uninitialized memory in readByteArrayAsData
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
Further, drop the initial size check, which is covered by readByteArray.
Add a test.
Reviewed-by: Mike Reed <email@example.com>
Commit-Queue: Leon Scroggins <firstname.lastname@example.org>
1 file changed