4 ms·
Note that `ob_item[i+3]` could read past the end of the array.
by Scaevolus 13y ago
Note that `ob_item[i+3]` could read past the end of the array.
- jzwinck 13y agoThis jumped out at me too. GCC's documentation says: Data prefetch does not generate faults if addr is invalid, but the address expression itself must be valid. For example, a prefetch of p->next does not fault if p->next is not a valid address, but evaluation faults if p is not a valid address. This seems to make the code as presented incorrect (i.e. it results in undefined behavior).