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-03-24 16:23:28 -04:00
2024-01-06 18:06:09 -05:00
2024-03-28 19:08:13 -04:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-03-24 15:25:18 -04:00
2024-03-24 15:25:18 -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-06 18:06:09 -05:00
2024-02-04 18:26:21 -05:00
2024-01-08 23:31:58 -05:00
2024-01-08 23:31:58 -05:00
2024-03-24 14:08:59 -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-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2022-11-13 10:38:50 -05:00
2023-01-15 18:27:13 -05:00
2024-01-27 16:40:36 -05:00
2024-02-04 19:41:50 -05:00
2024-01-06 18:06:09 -05:00
2024-02-04 11:32:50 -05:00
2024-01-06 18:06:09 -05:00
2024-08-04 16:00:48 -04:00
2024-03-28 19:08:13 -04:00
2024-01-27 16:40:36 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-03-24 15:25:53 -04:00
2024-03-24 15:25:53 -04:00
2024-01-06 18:06:09 -05:00
2024-03-24 16:23:28 -04:00
2024-02-04 11:32:50 -05:00
2024-08-04 15:21:59 -04: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
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-03-28 19:08:13 -04:00
2024-02-04 11:34:49 -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-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-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-08-04 15:21:59 -04:00
2024-08-04 15:21:59 -04:00