commit | fec2e2c783ff95c1cc42f5f8474e54d9602f713d | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Tue Mar 13 11:06:38 2018 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Wed Mar 14 07:26:20 2018 -0700 |
tree | 2dc404983f5b3821a0ba1b2aaffdee954b95e1d9 | |
parent | 84379567d3c7d9df0d05b9f02093b1548563450a [diff] |
logd: identical check access message data out of range (cherry pick from commit 22712428b825951e8a4b38f0482a7cc397e5cd78) Discovered while running AddressSanitizer, binary events were fed into logd that were smaller than the binary event string header. Fix is to check the buffer sizes before performing the memcmp operation. Test: compile Bug: 74574189 Change-Id: Ic01ef6fb0725258d9f39bbdca582ed648a1adc5d