diff options
author | Paul Smith <psmith@gnu.org> | 2023-03-26 09:24:06 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-03-26 09:24:06 -0400 |
commit | a367c0640fcbf9872cde1f8c79f4f11658807ad1 (patch) | |
tree | a1789aa5c494ae11ab3aeebde5bf09b202c95776 /src/makeint.h | |
parent | 3088e3e69874f4f25349e1870da5eeeb8a88e1ca (diff) | |
download | make-git-a367c0640fcbf9872cde1f8c79f4f11658807ad1.tar.gz |
Ensure variable_buffer is always nul-terminated
* src/expand.c (variable_buffer_output): Allocate an extra byte and
set it to nul. For safety, add assert() on PTR.
(variable_expand_string): Don't call variable_buffer_output just to
add a nul byte.
(allocated_variable_append): Ditto.
Diffstat (limited to 'src/makeint.h')
0 files changed, 0 insertions, 0 deletions