summaryrefslogtreecommitdiff
path: root/tests/scripts/features/comments
diff options
context:
space:
mode:
authorDmitry Goncharov <dgoncharov@users.sf.net>2023-04-30 09:39:04 -0400
committerPaul Smith <psmith@gnu.org>2023-04-30 09:41:02 -0400
commit06c75a35b93ac6ceacf0474e8b3a23d494fcea07 (patch)
tree3895563959fcc5e3f10bf58e091aea5b4ac2b3ec /tests/scripts/features/comments
parentebe0a1c9f1d1529a3f2c64d628686f500d460b0e (diff)
downloadmake-git-06c75a35b93ac6ceacf0474e8b3a23d494fcea07.tar.gz
[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.
Diffstat (limited to 'tests/scripts/features/comments')
0 files changed, 0 insertions, 0 deletions