Chromium Code Reviews
DescriptionUse offsetof in ZR_HELPER_ for Clang.
As an immediate reason for the change is that making an invalid
reinterpret_cast(16) causes Control Flow Integrity and UBSan vptr
sanitizers to crash on reading the vtable pointer. Ignoring this
problem (by suppressing a check) would mask real failures, some
of which have security consequences.
Theoretically, a similar change could be made for GCC, but there's
no immediate pressure to do that, as GCC does not have any type-checking
subsystem for reinterpret_casts.
NOTE: this patch will need to be reverted, when the github repo gets the official fix submitted by me to the internal Google repo.
BUG=605933
Committed: https://crrev.com/7809c2d9948352fb73d50d3b88b45e42bcfed5cc
Cr-Commit-Position: refs/heads/master@{#390568}
Patch Set 1 #
Total comments: 1
Patch Set 2 : link github and crbug issues #
Messages
Total messages: 20 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||