3 ms·
> which has bounds checking in hardware. x86 has bounds checking in hardware. it's called a page fault. [edit: formatting]
by sly010 8y ago
> which has bounds checking in hardware.
x86 has bounds checking in hardware. it's called a page fault.
[edit: formatting]
- erik_seaberg 8y agoSegmentation was expensive (loading an 80286 segment register was very slow and the segment table was impractically small) but could express "offsets between 0 and 42 are valid". Paging is much coarser and suffers from false negatives, because x[y] might accidentally walk off the end of x, skip a guard page, and land on a mapped page from another object.
- insertcredit 8y agoNot quite true: There would not exist exploitable buffer overflows if that was the case.