Fix MODE=asan build regression

This commit is contained in:
Justine Tunney 2023-01-08 05:47:18 -08:00
parent 5dab97b6d4
commit 7ab4630cc9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 3 additions and 1 deletions

View file

@ -52,6 +52,7 @@
#include "third_party/musl/rand48.h"
#include "libc/assert.h"
#include "libc/errno.h"
#include "libc/mem/gc.h"
#include "libc/str/str.h"
#include "third_party/hiredis/hiredis.h"
@ -977,7 +978,7 @@ redisPushFn *redisSetPushCallback(redisContext *c, redisPushFn *fn) {
* After this function is called, you may use redisGetReplyFromReader to
* see if there is a reply available. */
int redisBufferRead(redisContext *c) {
char buf[1024*16];
char *buf = _gc(malloc(1024*16));
int nread;
/* Return early when the context has seen an error. */

View file

@ -16,6 +16,7 @@
"__GNUC_PATCHLEVEL__"
"__GNUC__"
"__APPLE__"
"__CYGWIN__"
"__EMSCRIPTEN__"
"__ANDROID__"
"__FreeBSD__"