commit | e7d2bbadcab9ba7ab2450c0d61e5bf3ae08b2d47 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed Jul 07 09:59:32 2021 -0700 |
committer | Hao Chen <chenhaosjtuacm@google.com> | Fri Feb 18 18:03:24 2022 -0800 |
tree | 20368cf5f66002ea49b784285574aa761e9a6123 | |
parent | 95276a229b6abfe8111e6b92b9ca8f3043ec0515 [diff] |
fix potential use-after-frees of stack memory `devname_value` is a local variable; if `property_get` succeeds, we'll return a pointer to it. Returning a `std::string` instead sidesteps this problem. Bug: 190757198 Test: TreeHugger Change-Id: If9ca733dd21128706f2a9f62e8460b1286631aa5 Merged-In: If9ca733dd21128706f2a9f62e8460b1286631aa5