]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/main.c (main): [SV 59601] Check for malformed env. variables
authorPaul Smith <psmith@gnu.org>
Wed, 2 Dec 2020 22:27:55 +0000 (17:27 -0500)
committerPaul Smith <psmith@gnu.org>
Wed, 2 Dec 2020 22:27:55 +0000 (17:27 -0500)
src/main.c

index 90665134513e70f5d66af9afbe497253b50d7849..64e25291a0ac89a1a11ca726af6f32c0ec71373f 100644 (file)
@@ -1364,7 +1364,7 @@ main (int argc, char **argv, char **envp)
         enum variable_export export = v_export;
         size_t len;
 
-        while (! STOP_SET (*ep, MAP_EQUALS))
+        while (! STOP_SET (*ep, MAP_EQUALS|MAP_NUL))
           ++ep;
 
         /* If there's no equals sign it's a malformed environment.  Ignore.  */