diff options
author | George Burgess IV <gbiv@google.com> | 2021-07-07 09:59:32 -0700 |
---|---|---|
committer | Hao Chen <chenhaosjtuacm@google.com> | 2022-02-15 16:17:22 -0800 |
commit | 3f467bd10f520cc9d939098b5bf13058e4cdbaaa (patch) | |
tree | 9ff91acb98063085ddd70f98bd6b2bae039b86d3 /camera/common/1.0/default/CameraModule.cpp | |
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
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions