lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I meant that the Lua stack size is limited by LUAI_MAXCSTACK to 8k. I want to pop the arguments out of the Lua stack so I will have empty slots to work with.

On Thu, Nov 25, 2021 at 11:18 AM Flyer31 Test <flyer31@googlemail.com> wrote:
Why do you have 8k stack limit? (what system do you use? usually in
"normal CPU systems" like PC the stack size will be more in Megabyte
range?)

On Thu, Nov 25, 2021 at 10:05 AM Meir Shpilraien <meir@redis.com> wrote:
>
> Hey,
>
> I was wondering whether or not it's OK to pop out from the stack the arguments given to a native C function from Lua code. I am asking because users might send a lot of arguments to the C function (using unpack for example) and acquire all the room on the stack (which is set by default to 8K), leaving no place to push replies or perform other operations that require the stack.
>
> I am using Lua 5.1.5 (if it makes any difference).
>
> Thanks.
>
>
> Disclaimer
>
> The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.



Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.