commit | 3f467bd10f520cc9d939098b5bf13058e4cdbaaa | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed Jul 07 09:59:32 2021 -0700 |
committer | Hao Chen <chenhaosjtuacm@google.com> | Tue Feb 15 16:17:22 2022 -0800 |
tree | 9ff91acb98063085ddd70f98bd6b2bae039b86d3 | |
parent | cb8474d7b6693f2d8f5194fd25df30394f1e2c91 [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