udem-dlteam / pnut

🥜 A Self-Compiling C Transpiler Targeting Human-Readable POSIX Shell
https://pnut.sh
BSD 2-Clause "Simplified" License
424 stars 14 forks source link

Add RT_UNSAFE_HEAP to remove set -u #89

Closed laurenthuberdeau closed 2 months ago

laurenthuberdeau commented 2 months ago

Context

We can speed up certain programs by removing set -u to allow reads to undefined memory locations. We generally want to use set -u as it can catch buffer overflows, but it can be useful to have the option.