Release Cosmopolitan v3.6.0

This release is an atomic upgrade to GCC 14.1.0 with C23 and C++23
This commit is contained in:
Justine Tunney 2024-07-23 03:16:17 -07:00
parent 62ace3623a
commit 5660ec4741
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
1585 changed files with 117353 additions and 271644 deletions

View file

@ -129,9 +129,10 @@ static void *LuaRealloc(lua_State *L, void *p, size_t n) {
if (n < 0x100000000000) {
WARNF("reacting to malloc() failure by running lua garbage collector...");
luaC_fullgc(L, 1);
p2 = realloc(p, n);
if ((p2 = realloc(p, n)))
return p2;
}
return p2;
return p;
}
static void *LuaAlloc(lua_State *L, size_t n) {
@ -1565,7 +1566,10 @@ static int LuaUnixPoll(lua_State *L) {
fds = fds2;
++nfds;
} else {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuse-after-free"
free(fds);
#pragma GCC diagnostic pop
return LuaUnixSysretErrno(L, "poll", olderr);
}
} else {