Skip to content

Commit

Permalink
Merge 5752fa0 into 0014f29
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Feb 28, 2021
2 parents 0014f29 + 5752fa0 commit 0e72da3
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 0e72da3

Please sign in to comment.