summaryrefslogtreecommitdiff
path: root/gnss/common/utils/default/DeviceFileReader.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2021-07-07 09:59:32 -0700
committerHao Chen <chenhaosjtuacm@google.com>2022-02-18 18:03:24 -0800
commite7d2bbadcab9ba7ab2450c0d61e5bf3ae08b2d47 (patch)
tree20368cf5f66002ea49b784285574aa761e9a6123 /gnss/common/utils/default/DeviceFileReader.cpp
parent95276a229b6abfe8111e6b92b9ca8f3043ec0515 (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 'gnss/common/utils/default/DeviceFileReader.cpp')
0 files changed, 0 insertions, 0 deletions