diff options
author | Vladimir Marko <vmarko@google.com> | 2021-01-06 20:34:20 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2021-01-07 12:08:38 +0000 |
commit | aa027b80a4fb57c97cabf1fc8ae72de6b1490a64 (patch) | |
tree | dccec2a9f9fb7613c7184a4fb7f915dae2b098f3 /compiler/optimizing/code_generator.h | |
parent | 54ed0150a42297a1a5e477d6569619193fcbffd0 (diff) |
Fix Entry in CheckVTableHasNoDuplicates().
The Entry constructor initialized Entry.name_len in a call
to another function as part of the Entry.name initialization
but given the order of members, the Entry.name_len was later
overwritten with 0. When the change
https://android-review.googlesource.com/1535207
replaced strcmp() with memcmp(), relying on Entry.name_len
being properly initialized, the equality comparison was
broken. We fix that by initializing Entry.name_len before
the Entry.name and also adjust it for non-ASCII characters.
Test: m dump-oat # No unexpected logs.
Bug: 175869411
Change-Id: I08f3425b4dac25adddc4f720c110d85533b99d8b
Diffstat (limited to 'compiler/optimizing/code_generator.h')
0 files changed, 0 insertions, 0 deletions