commit | e873cf33d8519d3e85f4062df03c90a9f817de62 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri Apr 03 10:55:12 2020 -0700 |
committer | Steven Moreland <smoreland@google.com> | Fri Apr 03 11:01:18 2020 -0700 |
tree | 3281c74a4235a7a06d531fb2b5aa82ff808fee59 | |
parent | bb842a65ed0be3e762b1f2214fa20a45cd5ade83 [diff] |
Fix hypothetical double-own in hidl_vec. To my knowledge, no one has hit this, but this type (probably unwisely) allows itself to be empty w/ null buffer or empty w/ non-null buffer (e.g. via setExternal/resize(0)). So, releaseData should be checking for null buffer, not size 0. Bug: 152911913 Test: libhidl_test Change-Id: I5792b5aac5b3278333a75ff84f09d3d5e5b3a8a2