commit | 2a8b52e924b97b5979f7aa5b5170d2bbb7eead30 | [log] [tgz] |
---|---|---|
author | Miao Wang <miaowang@google.com> | Thu Mar 15 10:43:59 2018 -0700 |
committer | Miao Wang <miaowang@google.com> | Fri Mar 16 13:00:23 2018 -0700 |
tree | a0917b79667c88a8d8045366743a3b838dc8ce5e | |
parent | 9f843f259e61d3d1d3ae5b7fa4279b6dce1e4253 [diff] |
Fix the validation for ANeuralNetworksExecution_setInput & setOutput - For optional inputs, buffer must be nullptr and length must be 0. Passing a nullptr for buffer and a non-zero length is invalid. Bug: 74829782 Test: mm Test: ValidationTestExecution#SetInput pass Merged-In: Icdbc4fd98f0d9bfb35a58bff7f6902dc23123548 Change-Id: Icdbc4fd98f0d9bfb35a58bff7f6902dc23123548 (cherry picked from commit 4ee942c5df0d579baf83e9fb26596ae04896e20c)