diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-10-06 12:42:58 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-10-06 12:43:00 +0200 |
| commit | df9462690f9ca28e1b0fc3185f319c335cc3a32c (patch) | |
| tree | eb6e4403fc165083630411ce4ba4dcf8fc182d5e /src/codegen/spirv.zig | |
| parent | e6590fea19e3eab94b35bfd3c36e29b53cefcaaf (diff) | |
| download | zig-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 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions
