3 ms·
One highlight of this post is their work exposing a memory safety error in the original source code: > The Rust compiler also flagged a similar but actually bu
by floatingatoll 7y ago
One highlight of this post is their work exposing a memory safety error in the original source code:
> The Rust compiler also flagged a similar but actually buggy example in G_TryPushingEntity where the conditional is >, not >=. The out of bounds pointer was then dereferenced after the conditional, which is an actual memory safety bug.
- Avamander 7y agoInterestingly I've too found bugs in original source similar to this when rewriting in just TypeScript, so I suspect it's just someone taking a look that allows the bug to be discovered.
- jzoch 7y agoThis is a bit different since it isn't "someone" discovering this bug but the compiler
- ShorsHammer 7y agoSourcecode?
- floatingatoll 7y agoLinked from that paragraph in the article.
- vijaybritto 7y agoI think they are asking for the Typescript source