willox / auxtools

Rust library for low-level interfacing with BYOND's virtual machine. Includes a remote debugger for the BYOND DreamMaker language.
MIT License
28 stars 32 forks source link

crash on debug builds from byond_ffi_fn #90

Closed checkraisefold closed 1 month ago

checkraisefold commented 3 months ago

the byond_ffi_fn macro does not validate its argc or argv received from BYOND. when no arguments are passed through call_ext, argv is a null pointer and argc is 0; slice::from_raw_parts panics on debug builds when passed a null pointer as data.