mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
allow symbolize=1 for asan/debug
This commit is contained in:
@ -2338,10 +2338,12 @@ static void handle_resize(int sig) {
|
||||
|
||||
/* Check ASAN options. */
|
||||
|
||||
void check_asan_opts(void) {
|
||||
void check_asan_opts(afl_state_t *afl) {
|
||||
|
||||
u8 *x = get_afl_env("ASAN_OPTIONS");
|
||||
|
||||
(void)(afl);
|
||||
|
||||
if (x) {
|
||||
|
||||
if (!strstr(x, "abort_on_error=1")) {
|
||||
@ -2350,11 +2352,13 @@ void check_asan_opts(void) {
|
||||
|
||||
}
|
||||
|
||||
if (!strstr(x, "symbolize=0")) {
|
||||
#ifndef ASAN_BUILD
|
||||
if (!afl->debug && !strstr(x, "symbolize=0")) {
|
||||
|
||||
FATAL("Custom ASAN_OPTIONS set without symbolize=0 - please fix!");
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user