zig/test/standalone/stack_iterator
mlugg a31950aa57 std.debug: remove @frameAddress() "UAF"
We can't call `@frameAddress()` and then immediately `return`! That
invalidates the frame. This *usually* isn't a problem, because the stack
walk `next` call will *probably* have a stack frame and it will
*probably* be at the exact same address, but neither of those is a
guarantee. On powerpc, presumably some unfortunate inlining was going
on, so this frame was indeed invalidated when we started walking frames.

We need to explicitly pass `@frameAddress` into any function which will
return before we actually walk the stack. Pretty simple patch.

Resolves: #24970
2025-08-28 10:56:11 +01:00
..
build.zig Migrate from deprecated Step.Compile APIs 2025-07-26 12:06:43 +02:00
shared_lib.c
shared_lib_unwind.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
unwind.zig std.debug: remove @frameAddress() "UAF" 2025-08-28 10:56:11 +01:00
unwind_freestanding.zig zig fmt 2025-07-16 10:27:39 -07:00