make/tests/scripts
Dmitry Goncharov 034f862361 [SV 66037] Avoid hang/crash from MAKEFLAGS=... on command line
Make enters an infinite loop when some option and MAKEFLAGS=<value>
are specified on the command line.  For example,
    $ make -r MAKEFLAGS=hello=world

If decode_switches() runs handle_non_switch_argument() from within
the getopt() loop, it would recursively call decode_switches() to
enter a new getopt() loop, corrupting the state of the outer loop.

* src/main.c (decode_switches): Save up non-option arguments and run
handle_non_switch_argument() only after we're done with getopt().
* tests/scripts/variables/MAKEFLAGS: Add tests.
2024-08-04 16:00:48 -04:00
..
features [SV 65324] disable_builtins: Don't dereference NULL suffix_file 2024-05-06 14:11:17 -04:00
functions * tests/scripts/functions/shell: [SV 65323] Run huge var test in bash 2024-05-06 14:11:17 -04:00
misc tests: Run each file in a separate directory 2023-04-02 17:32:09 -04:00
options * src/warning.h: Put warnings into alphabetical order. 2024-08-04 15:21:59 -04:00
targets [SV 64085] Handle .POSIX plus .IGNORE correctly 2024-02-04 19:41:50 -05:00
variables [SV 66037] Avoid hang/crash from MAKEFLAGS=... on command line 2024-08-04 16:00:48 -04:00
vms Convert references from "GNU make" to "GNU Make" 2023-01-01 17:05:12 -05:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00