ASan/Android: crash on calloc overflow.
This is the generally preferred behaviour that is also expected by the unit tests. BUG=325685 R=glider@chromium.org, navabi@chromium.org Review URL: https://codereview.chromium.org/146833010 git-svn-id: http://src.chromium.org/svn/trunk/src/build@247219 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
a561545dc2
Коммит
bc22401d2d
|
@ -87,7 +87,10 @@ class AddressSanitizerTool(BaseTool):
|
||||||
"""AddressSanitizer tool."""
|
"""AddressSanitizer tool."""
|
||||||
|
|
||||||
WRAPPER_NAME = '/system/bin/asanwrapper'
|
WRAPPER_NAME = '/system/bin/asanwrapper'
|
||||||
EXTRA_OPTIONS = 'allocator_may_return_null=1,strict_memcmp=0'
|
# Disable memcmp overlap check.There are blobs (gl drivers)
|
||||||
|
# on some android devices that use memcmp on overlapping regions,
|
||||||
|
# nothing we can do about that.
|
||||||
|
EXTRA_OPTIONS = 'strict_memcmp=0'
|
||||||
|
|
||||||
def __init__(self, adb):
|
def __init__(self, adb):
|
||||||
self._adb = adb
|
self._adb = adb
|
||||||
|
|
Загрузка…
Ссылка в новой задаче