Commit 4ef48f12 authored by Michael Butler's avatar Michael Butler
Browse files

NNAPI: validate that FmqResultDatum padding is 0 -- runtime

FmqResultDatum::OperandInformation has padding that may not be
initialized by an NN HAL service instance. This CL makes
adjustments to ensure padding values entering and leaving the
FMQ are preserved. This CL also makes a private method public
for easier security testing.

Bug: 131356202
Test: mma
Test: atest VtsHalNeuralnetworksV1_2TargetTest
      (for ValidationTest with sample-all)
Test: altered sample-driver to randomly set a padding byte to 1;
      the new validation test successfully failed the test

Change-Id: Idd5af092ff838dc13ccd022b48b4f16661b40474
parent 6cae9c0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment