# std.math.big.int: Initialize limbs in addWrap · gitcafe/zig

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

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

Visibility: public

Requested revision: e8fdb249b673e3d69225c1b7cba68bdfc63061b1

Requested commit: e8fdb249b673e3d69225c1b7cba68bdfc63061b1

Commit: e8fdb249b673e3d69225c1b7cba68bdfc63061b1

Tree: 64cc5767e20006ef393ca2f1b3602f9be3f98eee

Author: Stevie Hryciw

Committer: Andrew Kelley

## Message

```
std.math.big.int: Initialize limbs in addWrap

When a big.Int.Mutable had more than two limbs, it was possible for
this function to change the `len` field without zeroing limbs in the
active range. These uninitialized limbs would then be used in
`truncate()` and could cause invalid results.

Closes #13571

```

## Parents

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

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