Re: SEGV when make is run with malformed environment
Martin Dorey <[email protected]> Tue, 23 Sep 2025 16:57:18 +0000
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <SJ0PR08MB67040A0FB88B6414FD2A163BFA1DA@SJ0PR08MB6704.namprd08.prod.outlook.com> |
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