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 <firstname.lastname@example.org>
Commit-Queue: Leon Scroggins <email@example.com>
1 file changed