mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 10:38:07 +00:00
Improved OSX support (#1005)
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
committed by
GitHub
parent
bf9a155418
commit
2a433f90c4
@ -24,6 +24,12 @@ __attribute__((visibility("default"))) void js_api_error(char *msg) {
|
||||
__attribute__((visibility("default"))) void js_api_set_entrypoint(
|
||||
void *address) {
|
||||
|
||||
if (address == NULL) {
|
||||
|
||||
js_api_error("js_api_set_entrypoint called with NULL");
|
||||
|
||||
}
|
||||
|
||||
entry_point = GPOINTER_TO_SIZE(address);
|
||||
|
||||
}
|
||||
@ -31,6 +37,12 @@ __attribute__((visibility("default"))) void js_api_set_entrypoint(
|
||||
__attribute__((visibility("default"))) void js_api_set_persistent_address(
|
||||
void *address) {
|
||||
|
||||
if (address == NULL) {
|
||||
|
||||
js_api_error("js_api_set_persistent_address called with NULL");
|
||||
|
||||
}
|
||||
|
||||
persistent_start = GPOINTER_TO_SIZE(address);
|
||||
|
||||
}
|
||||
@ -38,6 +50,12 @@ __attribute__((visibility("default"))) void js_api_set_persistent_address(
|
||||
__attribute__((visibility("default"))) void js_api_set_persistent_return(
|
||||
void *address) {
|
||||
|
||||
if (address == NULL) {
|
||||
|
||||
js_api_error("js_api_set_persistent_return called with NULL");
|
||||
|
||||
}
|
||||
|
||||
persistent_ret = GPOINTER_TO_SIZE(address);
|
||||
|
||||
}
|
||||
@ -156,6 +174,12 @@ __attribute__((visibility("default"))) void js_api_set_stats_transitions() {
|
||||
__attribute__((visibility("default"))) void js_api_set_persistent_hook(
|
||||
void *address) {
|
||||
|
||||
if (address == NULL) {
|
||||
|
||||
js_api_error("js_api_set_persistent_hook called with NULL");
|
||||
|
||||
}
|
||||
|
||||
persistent_hook = address;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user