2017-08-22 07:25:50 +08:00
|
|
|
RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: env ASAN_OPTIONS=handle_segv=0 not %run %t-NullDerefTest 2>&1 | FileCheck %s --check-prefix=LIBFUZZER_OWN_SEGV_HANDLER
|
2017-08-22 07:25:50 +08:00
|
|
|
LIBFUZZER_OWN_SEGV_HANDLER: == ERROR: libFuzzer: deadly signal
|
|
|
|
LIBFUZZER_OWN_SEGV_HANDLER: SUMMARY: libFuzzer: deadly signal
|
|
|
|
LIBFUZZER_OWN_SEGV_HANDLER: Test unit written to ./crash-
|
|
|
|
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: env ASAN_OPTIONS=handle_segv=1 not %run %t-NullDerefTest 2>&1 | FileCheck %s --check-prefix=LIBFUZZER_ASAN_SEGV_HANDLER
|
2017-08-22 07:25:50 +08:00
|
|
|
LIBFUZZER_ASAN_SEGV_HANDLER: ERROR: AddressSanitizer: {{SEGV|access-violation}} on unknown address
|