wireplumber/modules/module-lua-scripting/wplua
Demi Marie Obenour 15f5f96693 Fix Lua type confusion bug
The only secure and robust way to check that a userdata is of the
expected type is to check its metatable.  Userdata metatables are not
changeable by Lua code without the debug library, so if the metatable is
a certain table, only C code could have made it so.  GLib type checking
functions are _not_ a robust or secure way to check that a block of
memory is a specific type of GObject, because Lua code could cause a
type confusion bug and potentially use it to forge pointers.
2025-07-29 17:24:35 -04:00
..
boxed.c Fix Lua type confusion bug 2025-07-29 17:24:35 -04:00
closure.c wplua: move under modules/module-lua-scripting 2022-03-24 09:47:59 +02:00
gresource.xml wplua: move under modules/module-lua-scripting 2022-03-24 09:47:59 +02:00
meson.build meson: move the common CFLAGS to project-wide scope 2024-03-09 15:58:01 +02:00
object.c Fix Lua type confusion bug 2025-07-29 17:24:35 -04:00
private.h Fix Lua type confusion bug 2025-07-29 17:24:35 -04:00
sandbox.lua docs: fix various codebase typos Found via codespell -q 3 -S "*.po,./po/*,NEWS.rst" -L bootup,gir,inout 2025-01-28 15:45:54 +01:00
userdata.c Fix Lua type confusion bug 2025-07-29 17:24:35 -04:00
value.c m-lua-scripting: check argument type is table to avoid crashing 2023-10-13 22:47:57 +03:00
wplua.c lua: Push "_new", not '_' and then "new". 2025-07-24 12:36:29 +03:00
wplua.h lua: sandbox: remove all traces of the minimal_std flag, as it's no longer used 2022-04-23 20:14:59 +03:00