diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-07-26 17:06:08 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-07-30 12:51:35 +0200 |
commit | b2abe4e1aded1409964b870899d18dfdb6384821 (patch) | |
tree | 0fa9e7eff298131f8450c45cf0b229af6b9a2536 /gcc/builtins.c | |
parent | bafda275371c43a67a9f84813886b9aa6cf4cd98 (diff) | |
download | gcc-b2abe4e1aded1409964b870899d18dfdb6384821.zip gcc-b2abe4e1aded1409964b870899d18dfdb6384821.tar.gz gcc-b2abe4e1aded1409964b870899d18dfdb6384821.tar.bz2 |
d: Insert null terminator in obstack buffers
Covers cases where functions that handle the extracted strings ignore
the explicit length. This isn't something that's known to happen in the
current front-end, but the self-hosted front-end has been observed to do
this in its conversions between D and C-style strings.
gcc/d/ChangeLog:
* d-lang.cc (deps_add_target): Insert null terminator in buffer.
(deps_write): Likewise.
(d_parse_file): Likewise.
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions