vb2_sha_api_tests: Silence UBSAN warning for zero length array access

Looks like UBSAN doesn't like zero-length arrays. We use those all the
time in firmware, but I guess that's the reason we don't even try to run
UBSAN on the real firmware repos. For this particular case in vboot's
tests, it's easy enough to work around.

BRANCH=None
BUG=chromium:1043405
TEST=make runtests

Change-Id: Ia799fdc57ee17dc46b55920dd1d2601adf98d3f7
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2008766
Reviewed-by: Joel Kitching <kitching@chromium.org>
1 file changed