# std.debug: fix an invalid read in StackIterator.next\(\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/62a8cfd5fed1380331b10d20fbb7b08f206cf541)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 62a8cfd5fed1380331b10d20fbb7b08f206cf541

Requested commit: 62a8cfd5fed1380331b10d20fbb7b08f206cf541

Commit: 62a8cfd5fed1380331b10d20fbb7b08f206cf541

Tree: f3dd6af5e91291d0a410888d20afdb56d6dd202e

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.debug: fix an invalid read in StackIterator.next()

We're overwriting the memory that unwind_context sits in, so we need to do the
getFp() call earlier.

```

## Parents

- [a36dab2f90020c5544fddf68520c2057edc2ec00](https://git.cafe/gitcafe/zig/commit/a36dab2f90020c5544fddf68520c2057edc2ec00?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/62a8cfd5fed1380331b10d20fbb7b08f206cf541?format=markdown)
