Y
Hacker News
new
|
ask
|
show
|
jobs
by
tines
1569 days ago
Yep, well-defined in C++, but the resulting out-of-bounds accesses and all that are not well-defined.
1 comments
schemescape
1569 days ago
Thanks. 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.
link