mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 10:38:07 +00:00
code format
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
#define TRACE_BUFFER_SIZE (64)
|
||||
|
||||
#define PAGE_SIZE 0x1000
|
||||
#define MMAP_SIZE(x) ((x & ~(PAGE_SIZE-1)) + PAGE_SIZE)
|
||||
#define MMAP_SIZE(x) ((x & ~(PAGE_SIZE - 1)) + PAGE_SIZE)
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
@ -30,8 +30,9 @@ int main(int argc, char **argv) {
|
||||
/* this is our "bitmap" that is later shared with the fuzzer (you can also
|
||||
* pass the pointer of the bitmap used by compile-time instrumentations in
|
||||
* your target) */
|
||||
uint8_t *trace_buffer = mmap(NULL, MMAP_SIZE(TRACE_BUFFER_SIZE), PROT_READ |
|
||||
PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
|
||||
uint8_t *trace_buffer =
|
||||
mmap(NULL, MMAP_SIZE(TRACE_BUFFER_SIZE), PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
|
||||
memset(trace_buffer, 0,
|
||||
TRACE_BUFFER_SIZE); // makes sure that the bitmap buffer is already
|
||||
// mapped into the guest's memory (alternatively
|
||||
|
Reference in New Issue
Block a user