mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
Fix to handling of persistent mode using JS
This commit is contained in:
@ -47,6 +47,14 @@ __attribute__((visibility("default"))) void js_api_set_persistent_address(
|
||||
|
||||
persistent_start = GPOINTER_TO_SIZE(address);
|
||||
|
||||
if (getenv("__AFL_PERSISTENT") == NULL) {
|
||||
|
||||
FATAL(
|
||||
"You must set __AFL_PERSISTENT manually if using persistent mode "
|
||||
"configured using JS");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) void js_api_set_persistent_return(
|
||||
|
Reference in New Issue
Block a user