diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-11-25 22:30:56 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-11-25 22:30:56 +0100 |
commit | 0b4c4d74344613a15791e61179a441d80803d67a (patch) | |
tree | 4a908f3f0b4e6704b6895ee5e3c679250550270a /src/libstore/gc.cc | |
parent | bc9692a6b701fffe25d2e3b1d16f00edd596930f (diff) |
Don't use GC_STRNDUP
It calls strlen() on the input (rather than simply copying at most
`size` bytes), which can fail if the input is not zero-terminated and
is inefficient in any case.
Fixes #7347.
Diffstat (limited to 'src/libstore/gc.cc')
0 files changed, 0 insertions, 0 deletions