mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Fix bug in ASAN reporting
This commit is contained in:
parent
7486a2cd51
commit
1429a7b3ef
2 changed files with 2 additions and 3 deletions
|
@ -1300,7 +1300,7 @@ void __asan_unregister_globals(struct AsanGlobal g[], int n) {
|
||||||
void __asan_evil(uint8_t *addr, int size, const char *s) {
|
void __asan_evil(uint8_t *addr, int size, const char *s) {
|
||||||
struct AsanTrace tr;
|
struct AsanTrace tr;
|
||||||
__asan_rawtrace(&tr, RBP);
|
__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]);
|
tr.p[0], tr.p[1], tr.p[2], tr.p[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
third_party/lua/luaformatstack.c
vendored
3
third_party/lua/luaformatstack.c
vendored
|
@ -21,9 +21,8 @@
|
||||||
#include "third_party/lua/lauxlib.h"
|
#include "third_party/lua/lauxlib.h"
|
||||||
|
|
||||||
dontdiscard char *LuaFormatStack(lua_State *L) {
|
dontdiscard char *LuaFormatStack(lua_State *L) {
|
||||||
size_t l;
|
|
||||||
int i, top;
|
int i, top;
|
||||||
char *p, *b = 0;
|
char *b = 0;
|
||||||
struct EncoderConfig conf = {
|
struct EncoderConfig conf = {
|
||||||
.maxdepth = 64,
|
.maxdepth = 64,
|
||||||
.sorted = true,
|
.sorted = true,
|
||||||
|
|
Loading…
Reference in a new issue