| author | |
| committer | |
| log | f416535768fc30195cad6cd481f73fd1e80082aa |
| tree | 2ec26d70f41a1382b736b606ebfa094ace62573e |
| parent | 53987c932c9d62cc9cdae3d523fb62756ce83ca9 |
See #74951 files changed, 3 insertions(+), 1 deletions(-)
lib/std/crypto/tlcsprng.zig+3-1| ... | ... | @@ -117,7 +117,9 @@ fn setupPthreadAtforkAndFill(buffer: []u8) void { |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | fn childAtForkHandler() callconv(.C) void { |
| 120 | const wipe_slice = @ptrCast([*]u8, &wipe_me)[0..@sizeOf(@TypeOf(wipe_me))]; | |
| 120 | // TODO this is a workaround for https://github.com/ziglang/zig/issues/7495 | |
| 121 | var wipe_slice: []u8 = undefined; | |
| 122 | wipe_slice = @ptrCast([*]u8, &wipe_me)[0..@sizeOf(@TypeOf(wipe_me))]; | |
| 121 | 123 | std.crypto.utils.secureZero(u8, wipe_slice); |
| 122 | 124 | } |
| 123 | 125 |