Skip to content

Commit

Permalink
Merge d9e87d3 into 089f627
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo authored Sep 26, 2020
2 parents 089f627 + d9e87d3 commit a59f067
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vm/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,17 @@ static void *readfile(const char *path, size_t maxlen, size_t *len)
return data;
}

#ifndef memfrob
void *
memfrob(void *s, size_t n)
{
for (int i = 0; i < n; i++) {
((char *)s)[i] ^= 42;
}
return s;
}
#endif

static uint64_t
gather_bytes(uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t e)
{
Expand Down
1 change: 1 addition & 0 deletions vm/ubpf_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <stdarg.h>
#include <inttypes.h>
#include <sys/mman.h>
#include <endian.h>
#include "ubpf_int.h"

#define MAX_EXT_FUNCS 64
Expand Down

0 comments on commit a59f067

Please sign in to comment.