# std.heap.raw_c_allocator: use malloc_size for resize · gitcafe/zig

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

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

Visibility: public

Requested revision: 9d7082972e8df9105b48a806e7bfabca90d4dc1b

Requested commit: 9d7082972e8df9105b48a806e7bfabca90d4dc1b

Commit: 9d7082972e8df9105b48a806e7bfabca90d4dc1b

Tree: 002f93ef63b51f8459b0d9c77520aab593d31d3d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.heap.raw_c_allocator: use malloc_size for resize

std.heap.c_allocator was already doing this, however,
std.heap.raw_c_allocator, which asserts no allocations more than 16
bytes aligned, was not.

The zig compiler uses std.heap.raw_c_allocator, so it is affected by
this.

```

## Parents

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

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