logoalt Hacker News

amlutotoday at 2:11 PM2 repliesview on HN

This bug is almost certainly not a bug in ripgrep or Rust or musl or any user code at all. Maybe one could complain that musl is using an inferior allocator that is freeing then immediately reallocating the same address.

edit: silly observation: the general Rust practice of using immutable bindings by default and not leaking shadowing bindings out of blocks would have made the bug I think I found less likely.


Replies

jibaltoday at 2:27 PM

Thank you for writing virtually all of the intelligent competent comments on this page.