make/tests/scripts
Dmitry Goncharov 06c75a35b9 [SV 64124] Avoid use-after-free in expand_variable_buf()
When the expanded value of the variable in buf occupies more space
than available in variable_buffer, function variable_buffer_output
reallocates variable_buffer: return a pointer into the new memory,
not the old memory.

* src/expand.c (expand_variable_buf): Preserve the offset of buf and
return that offset into the (potentially reallocated) buffer.
* tests/scripts/features/expand: Add tests.
2023-04-30 09:41:02 -04:00
..
features [SV 64124] Avoid use-after-free in expand_variable_buf() 2023-04-30 09:41:02 -04:00
functions Adjust output strings to be aligned 2023-04-02 10:02:18 -04:00
misc tests: Run each file in a separate directory 2023-04-02 17:32:09 -04:00
options [SV 64115] Suppress warnings about undefined GNUMAKEFLAGS 2023-04-30 09:40:50 -04:00
targets * tests/scripts/targets/WAIT: Add whitespace to avoid W32 issues 2023-04-02 17:30:27 -04:00
variables [SV 64107] Disable builtins immediately on -R or -r 2023-04-30 09:40:50 -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