Repository navigation
Metal renderer over-allocates cell buffers by 32× (@sizeOf(T) applied twice on grow)
#13350
What
Fix- @as(c_ulong, @intCast(size * @sizeOf(T))),
+ @as(c_ulong, @intCast(size)),in both grow paths — Impact
Verifying this is real (not an AI-hallucinated report)This was surfaced by an AI-assisted Rust port of the terminal, which is an easy way to generate plausible-but-wrong bug reports. So rather than ask you to trust it, here is the evidence to confirm it independently:
PR accessThe one-line fix is ready on the branch above. I'm a first-time contributor and not yet vouched — I have an open vouch request in #13232. Per the contributing docs an unvouched PR would be auto-closed, so I've held off opening one. Happy to open the PR (fix, and optionally the regression test) as soon as that's sorted — just let me know the preferred path. Disclosure: this report was prepared with AI assistance; the finding, history, and measurements were verified against upstream source at |
Replies: 1 comment
|
This was fixed on main. Thanks. |
This was fixed on main. Thanks.