mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Fix MODE=asan build regression
This commit is contained in:
parent
5dab97b6d4
commit
7ab4630cc9
2 changed files with 3 additions and 1 deletions
3
third_party/hiredis/hiredis.c
vendored
3
third_party/hiredis/hiredis.c
vendored
|
@ -52,6 +52,7 @@
|
||||||
#include "third_party/musl/rand48.h"
|
#include "third_party/musl/rand48.h"
|
||||||
#include "libc/assert.h"
|
#include "libc/assert.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
|
#include "libc/mem/gc.h"
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
|
|
||||||
#include "third_party/hiredis/hiredis.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
|
* After this function is called, you may use redisGetReplyFromReader to
|
||||||
* see if there is a reply available. */
|
* see if there is a reply available. */
|
||||||
int redisBufferRead(redisContext *c) {
|
int redisBufferRead(redisContext *c) {
|
||||||
char buf[1024*16];
|
char *buf = _gc(malloc(1024*16));
|
||||||
int nread;
|
int nread;
|
||||||
|
|
||||||
/* Return early when the context has seen an error. */
|
/* Return early when the context has seen an error. */
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
"__GNUC_PATCHLEVEL__"
|
"__GNUC_PATCHLEVEL__"
|
||||||
"__GNUC__"
|
"__GNUC__"
|
||||||
"__APPLE__"
|
"__APPLE__"
|
||||||
|
"__CYGWIN__"
|
||||||
"__EMSCRIPTEN__"
|
"__EMSCRIPTEN__"
|
||||||
"__ANDROID__"
|
"__ANDROID__"
|
||||||
"__FreeBSD__"
|
"__FreeBSD__"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue