Skip to content

Commit

Permalink
Bug 1349176 - Enable ASan stack-use-after-return and address-use-afte…
Browse files Browse the repository at this point in the history
…r-scope checks r=franziskus

Differential Revision: https://nss-review.dev.mozaws.net/D265

--HG--
extra : amend_source : 8af17164dee89bb5bddab0bcb6604f023ffb4735
  • Loading branch information
Tim Taubert committed Mar 21, 2017
1 parent 3a08e33 commit 2562989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion automation/taskcluster/graph/src/extend.js
Expand Up @@ -297,7 +297,7 @@ function scheduleFuzzingRun(base, name, target, max_len, symbol = null, corpus =
async function scheduleFuzzing() { async function scheduleFuzzing() {
let base = { let base = {
env: { env: {
ASAN_OPTIONS: "allocator_may_return_null=1", ASAN_OPTIONS: "allocator_may_return_null=1:detect_stack_use_after_return=1",
UBSAN_OPTIONS: "print_stacktrace=1", UBSAN_OPTIONS: "print_stacktrace=1",
NSS_DISABLE_ARENA_FREE_LIST: "1", NSS_DISABLE_ARENA_FREE_LIST: "1",
NSS_DISABLE_UNLOAD: "1", NSS_DISABLE_UNLOAD: "1",
Expand Down
2 changes: 1 addition & 1 deletion coreconf/sanitizers.py
Expand Up @@ -14,7 +14,7 @@ def main():
print('-fsanitize='+sys.argv[2]+' -fno-sanitize-recover=undefined ', end='') print('-fsanitize='+sys.argv[2]+' -fno-sanitize-recover=undefined ', end='')
return return
if sanitizer == "asan": if sanitizer == "asan":
print('-fsanitize=address ', end='') print('-fsanitize=address -fsanitize-address-use-after-scope ', end='')
print('-fno-omit-frame-pointer -fno-optimize-sibling-calls ', end='') print('-fno-omit-frame-pointer -fno-optimize-sibling-calls ', end='')
return return
if sanitizer == "msan": if sanitizer == "msan":
Expand Down

0 comments on commit 2562989

Please sign in to comment.