mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 17:21:33 +00:00
Merge pull request #394 from devnexen/libtoken_api_nbsd_upd
libdislocator, adding subset of specific NetBSD api.
This commit is contained in:
commit
c036108b59
@ -501,3 +501,28 @@ __attribute__((constructor)) void __dislocator_init(void) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* NetBSD fault handler specific api subset */
|
||||||
|
|
||||||
|
void (* esetfunc(void (*fn)(int, const char *, ...)))(int, const char *, ...)
|
||||||
|
{
|
||||||
|
/* Might not be meaningful to implement; upper calls already report errors */
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
void *emalloc(size_t len) {
|
||||||
|
|
||||||
|
return malloc(len);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void *ecalloc(size_t elem_len, size_t elem_cnt) {
|
||||||
|
|
||||||
|
return calloc(elem_len, elem_cnt);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void *erealloc(void *ptr, size_t len) {
|
||||||
|
|
||||||
|
return realloc(ptr, len);
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user