3 ms·
Is this unsigned integer overflow? Isn’t that well defined in C++ as well? Edit: I didn’t research where the corruption comes from in this bug. Edit again: it
by schemescape 5y ago
Is this unsigned integer overflow? Isn’t that well defined in C++ as well?
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++.
- tines 5y agoYep, well-defined in C++, but the resulting out-of-bounds accesses and all that are not well-defined.
- schemescape 5y agoThanks. I should look at the code. I thought unsigned int overflow would wrap to zero, which would still be in bounds for a nontrivial array. Maybe they’re freeing the item at that index the first time through the array or something.