Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 91d50bbf authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

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
parent 17879bb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment