commit | ebbda48faa9694299b66cef2f0a3826ec6dadb63 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Aug 25 14:43:12 2022 -0700 |
committer | Yabin Cui <yabinc@google.com> | Thu Aug 25 14:50:15 2022 -0700 |
tree | 42d19836c07b599054bde49f5ecbb0ca403df3a4 | |
parent | 5d35f427c877a98f313044b864c606de4efc3b71 [diff] |
simpleperf: fix a heap buffer overflow reported by hwasan. The kallsyms field in KernelSymbolRecord may not end with '\0'. So we should use kallsyms_size when building std::string. Bug: 237255120 Test: run simpleperf_unit_test Change-Id: I62bcf81ae58756885f3d5f0a4a5a51edcdb3e3d2