Turns out it's possible to violate safety in Rust with Rc and integer overflow:
miniblog.
Related Posts
I'd heard the conventional wisdom that UX research states that mice are more efficient than keyboards, but turns out there's virtually no research on this!
I've written my first man page! https://github.com/Wilfred/difftastic/commit/cb63ca88303d3c8dffd763cf6e5772e45c045588
Troff syntax is new to me and a little hard to read -- apparently you shouldn't use blank lines. Turns out you can use pandoc to convert markdown to troff instead.
Difftastic is written in Rust, so I was surprised to get a user report of a segfault.
After some investigation, it turns out that it's a segfault in git itself, which has existed since 2014! https://lore.kernel.org/git/CAFXAjY7XcL1APhLRXU8TO96z=f7957f2ieK56dHVsXUay55vpg@mail.gmail.com/T/#u
(Upstream has already kindly written a patch.)
![Rc is unsafe [mostly on 32-bit targets] due to overflow](https://us1.discourse-cdn.com/flex002/uploads/rustlang/original/2X/b/b71959a2097ce0b5c3a193ce0a6466a42d4c4952.png)