# macho: Pass sections by pointer when slicing names · gitcafe/zig

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

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

Visibility: public

Requested revision: de62bd06472e5603fd2afb6f50d688d54f4098b4

Requested commit: de62bd06472e5603fd2afb6f50d688d54f4098b4

Commit: de62bd06472e5603fd2afb6f50d688d54f4098b4

Tree: 3943dc865e71007aa56d2bc6615af3f711dbd1e0

Author: Cody Tapscott

Committer: Andrew Kelley

## Message

```
macho: Pass sections by pointer when slicing names

We were accidentally returning a pointer to stack memory, because these
arguments were passed by value. It's just an accident that stage 1 was
passing these by reference, so things were alright until stage 3.

```

## Parents

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

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