ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).
https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html
https://lists.debian.org/debian-lts-announce/2020/09/msg00019.html
https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b