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
..
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-08 23:31:58 -05:00
2024-01-06 18:06:09 -05:00
2023-01-15 18:27:13 -05:00
2024-01-06 18:06:09 -05:00
2024-08-04 15:21:59 -04:00
2024-01-08 23:31:58 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00