aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Cache.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-10-06 12:42:58 +0200
committerJakub Konka <kubkon@jakubkonka.com>2023-10-06 12:43:00 +0200
commitdf9462690f9ca28e1b0fc3185f319c335cc3a32c (patch)
treeeb6e4403fc165083630411ce4ba4dcf8fc182d5e /lib/std/Build/Cache.zig
parente6590fea19e3eab94b35bfd3c36e29b53cefcaaf (diff)
downloadzig-df9462690f9ca28e1b0fc3185f319c335cc3a32c.tar.gz
zig-df9462690f9ca28e1b0fc3185f319c335cc3a32c.zip
std: fix memory bug in getExternalExecutor
Until now, we would pass `candidate: NativeTargetInfo` which creates a copy of the `NativeTargetInfo.DynamicLinker` buffer. We would then return this buffer in `bad_dl: []const u8` which would goes out-of-scope the moment we leave this function frame yielding garbage. To fix this, we just need to remember to pass by const-pointer `candidate: *const NativeTargetInfo`.
Diffstat (limited to 'lib/std/Build/Cache.zig')
0 files changed, 0 insertions, 0 deletions