mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 11:12:27 +00:00
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:
parent
62ace3623a
commit
5660ec4741
1585 changed files with 117353 additions and 271644 deletions
8
third_party/lua/lunix.c
vendored
8
third_party/lua/lunix.c
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue