You don't mention which version of GNU Make you're using. I see similar if I use the version from Debian Buster, but not in the latest version. It seems likely to have been fixed nearly five years ago under:
https://savannah.gnu.org/bugs/?59601 buffer over-read on malformed environment variable ________________________________ From: [email protected] <[email protected]> on behalf of Mohamed Ait Oubarka <[email protected]> Sent: Monday, September 22, 2025 17:56 To: [email protected] <[email protected]> Subject: SEGV when make is run with malformed environment ***** EXTERNAL EMAIL ***** Hello, GNU Make crashes with a SEGV when the environment contains invalid entries. For example: ```c #include <unistd.h> int main(void) { char *envp[] = {"key", NULL}; // key without value execve("/bin/make", (char *[]) {"/bin/make", NULL}, envp); } ``` Regards, OUBARKA
