Skip to content

Commit 7d14eca

Browse files
committed
debug: Initialize windows.UNWIND_HISTORY_TABLE as undefined
`std.mem.zeroes` is not compatible with the structure because it contains non-nullable pointers. `history_table` is an output parameter of `windows.ntdll.RtlLookupFunctionEntry` and never read afterward, so there should be no functional change.
1 parent 937e8cb commit 7d14eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/debug.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ pub noinline fn walkStackWindows(addresses: []usize, existing_context: ?*const w
764764

765765
var i: usize = 0;
766766
var image_base: usize = undefined;
767-
var history_table: windows.UNWIND_HISTORY_TABLE = std.mem.zeroes(windows.UNWIND_HISTORY_TABLE);
767+
var history_table: windows.UNWIND_HISTORY_TABLE = undefined;
768768

769769
while (i < addresses.len) : (i += 1) {
770770
const current_regs = context.getRegs();

0 commit comments

Comments
 (0)