Fix to handling of persistent mode using JS

This commit is contained in:
Your Name
2021-11-11 18:32:35 +00:00
parent a15b5ef458
commit b033a2d98b
2 changed files with 9 additions and 0 deletions

View File

@ -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(