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
Loading
Please sign in to comment