commit | f79a00874d415ba7e7fda01cf2eb76bf06e459a6 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Nov 14 11:23:14 2016 -0800 |
committer | Yabin Cui <yabinc@google.com> | Mon Nov 14 11:23:14 2016 -0800 |
tree | a87631f54174b503b5c4eb79e34de4a4cccbaf69 | |
parent | ee71d0b6a8e00630d4af34d5be7acb2369855e33 [diff] |
simpleperf: fix potential unaligned memory access. 1. It is reported that when elf section headers are malformed, GetBuildIdFromNoteSection() aborts with SIGBUS. So fix it to accept not 4 bytes aligned section data. 2. Fix potential unaligned memory access in ConvertBytesToValue(). Test: run simpleperf_unit_test. Change-Id: I2e1612a6567978e0b526b2274377765ba2837ec2