Earlier quoted context omitted.
Is this a vulnerability that would be impossible kn6, let's say, Rust?
This seems to be the patch: https://github.com/github/cmark-gfm/commit/cf7577d2f74289cb8... Integer overflow can happen in Rust, but it's well-defined, not undefined. This helps. Bounds checking is part of indexing, and so even if an index overflows, the check should happen, and panic. "impossible" is a strong word, but it would be significantly less likely in Rust. If you did the same thing as you did in C, with uns…
Edit: I didn’t research where the corruption comes from in this bug.
Edit again: it looks like the source file is actually C and not C++.