mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-21 05:42:12 +00:00
libradamsa fix
This commit is contained in:
@ -27,9 +27,6 @@
|
||||
#include "afl-fuzz.h"
|
||||
|
||||
void load_custom_mutator(afl_state_t *, const char *);
|
||||
#ifdef USE_PYTHON
|
||||
void load_custom_mutator_py(afl_state_t *, char *);
|
||||
#endif
|
||||
|
||||
void setup_custom_mutator(afl_state_t *afl) {
|
||||
|
||||
|
4
src/third_party/libradamsa/libradamsa.c
vendored
4
src/third_party/libradamsa/libradamsa.c
vendored
@ -1841,6 +1841,8 @@ static const unsigned char heap[] = {2,3,4,105,111,116,97,2,3,7,112,97,116,116,1
|
||||
#include <stdio.h>
|
||||
#include <netdb.h>
|
||||
|
||||
#include "./radamsa.h"
|
||||
|
||||
#ifndef EMULTIHOP
|
||||
#define EMULTIHOP -1
|
||||
#endif
|
||||
@ -30757,7 +30759,7 @@ static void setup(int nwords, int nobjs) {
|
||||
memend = memstart + nwords - MEMPAD;
|
||||
}
|
||||
|
||||
int secondary(int nargs, char **argv) {
|
||||
static int secondary(int nargs, char **argv) {
|
||||
word *prog;
|
||||
int rval, nobjs=0, nwords=0;
|
||||
find_heap(&nargs, &argv, &nobjs, &nwords);
|
||||
|
6
src/third_party/libradamsa/radamsa.h
vendored
6
src/third_party/libradamsa/radamsa.h
vendored
@ -1,13 +1,13 @@
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
|
||||
extern void radamsa_init(void);
|
||||
void radamsa_init(void);
|
||||
|
||||
extern size_t radamsa(uint8_t *ptr, size_t len,
|
||||
size_t radamsa(uint8_t *ptr, size_t len,
|
||||
uint8_t *target, size_t max,
|
||||
unsigned int seed);
|
||||
|
||||
extern size_t radamsa_inplace(uint8_t *ptr,
|
||||
size_t radamsa_inplace(uint8_t *ptr,
|
||||
size_t len,
|
||||
size_t max,
|
||||
unsigned int seed);
|
||||
|
Reference in New Issue
Block a user