diff options
author | Tom Cherry <tomcherry@google.com> | 2020-06-17 09:23:14 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2020-06-17 09:34:51 -0700 |
commit | 34d7bd98adc080041202cceec4626fd88b4b6e88 (patch) | |
tree | 0309df6bd1b2e8d309a79561540e247965d23785 /libutils/ProcessCallStack_fuzz.cpp | |
parent | cf88259783b103ef514c0fe4eedafeea3733d140 (diff) |
liblog: fix reading pmsg
d3ecc66b9c "liblog: support extended logger_entry headers" removed
the logger_entry::msg variable and instead uses hdr_size as an offset
from logger_entry to where the message starts in parent log_msg
buffer.
In pmsg, hdr_size is not recorded and therefore uninitialized when it
was referenced, causing corruption when reading last logcat. This
change uses sizeof(log_msg->entry) instead.
Bug: 158263230
Test: last logcat works
Change-Id: Ic01e73bf4d8ba8419cc770138565aa1210a6078b
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions