code format

This commit is contained in:
van Hauser
2020-06-03 10:50:49 +02:00
parent 1c95e2e8e0
commit fc164e4709
13 changed files with 90 additions and 64 deletions

View File

@ -7,9 +7,9 @@
#define REGS_RSI 6
void afl_persistent_hook(uint64_t *regs, uint64_t guest_base,
uint8_t* input_buf, uint32_t input_len) {
uint8_t *input_buf, uint32_t input_len) {
memcpy(g2h(regs[REGS_RDI]), input_buf, input_len);
memcpy(g2h(regs[REGS_RDI]), input_buf, input_len);
regs[REGS_RSI] = input_len;
}
@ -19,3 +19,4 @@ int afl_persistent_hook_init(void) {
return 1;
}