commit | 91d50bbf8997068449a8265bd2b6265bfdd8b9f2 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Fri Apr 16 17:38:23 2021 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Fri Apr 16 17:38:23 2021 -0700 |
tree | 4a9fa09c32cba9687311c36d2cfa04ae0e3b3e9a | |
parent | 17879bb4df024e9aec307a70db6347922f00199c [diff] |
Serializer: fix allocator / deallocator mismatch Use of unique_ptr<char[]> for pointers to C strings is invalid as it calls 'delete[]' on a heap block allocated via 'malloc'. Use a specialization of unique_ptr which calls 'free' instead. Bug: 184845897 Test: see PoC in the bug Change-Id: Ib9264bebb9753d19965095ccd904aeaf54d84636