mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Fix C stack remaining check in MODE=tiny
This commit is contained in:
parent
bcdd5c5f74
commit
28b9d9f781
5 changed files with 11 additions and 7 deletions
|
@ -50,8 +50,7 @@ static struct DecodeJson Parse(struct lua_State *L, const char *p,
|
|||
if (UNLIKELY(!depth)) {
|
||||
return (struct DecodeJson){-1, "maximum depth exceeded"};
|
||||
}
|
||||
if (UNLIKELY((intptr_t)__builtin_frame_address(0) <
|
||||
GetStackAddr() + PAGESIZE * 2)) {
|
||||
if (UNLIKELY(!HaveStackMemory(PAGESIZE))) {
|
||||
return (struct DecodeJson){-1, "out of stack"};
|
||||
}
|
||||
for (a = p, d = +1; p < e;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue