Fix bug in ASAN reporting

This commit is contained in:
Justine Tunney 2023-02-02 01:50:16 -08:00
parent 7486a2cd51
commit 1429a7b3ef
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 2 additions and 3 deletions

View file

@ -1300,7 +1300,7 @@ void __asan_unregister_globals(struct AsanGlobal g[], int n) {
void __asan_evil(uint8_t *addr, int size, const char *s) {
struct AsanTrace tr;
__asan_rawtrace(&tr, RBP);
kprintf("WARNING: ASAN bad %d byte %s at %x bt %x %x %x\n", size, s, addr,
kprintf("WARNING: ASAN bad %d byte %s at %lx bt %x %x %x\n", size, s, addr,
tr.p[0], tr.p[1], tr.p[2], tr.p[3]);
}

View file

@ -21,9 +21,8 @@
#include "third_party/lua/lauxlib.h"
dontdiscard char *LuaFormatStack(lua_State *L) {
size_t l;
int i, top;
char *p, *b = 0;
char *b = 0;
struct EncoderConfig conf = {
.maxdepth = 64,
.sorted = true,