# Dwarf: fix cross_section_relocs capacity · gitcafe/zig

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

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

Visibility: public

Requested revision: b3c63e5de0c0441b9facc71b4c7e0a3d1811368d

Requested commit: b3c63e5de0c0441b9facc71b4c7e0a3d1811368d

Commit: b3c63e5de0c0441b9facc71b4c7e0a3d1811368d

Tree: 47843e1737ff8f41892254351db1a5415921db2a

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
Dwarf: fix cross_section_relocs capacity

This ensure capacity call does not match the number of
appendAssumeCapacity() calls that follow it. Fix this.

This was discovered due to hitting the assertion failure in
appendAssumeCapacity() while building river.

I'm not sure how to isolate a minimal reproducer for a test.

```

## Parents

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

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