3 ms·
Hardware seg faults for accessing the first page in memory are the norm for modern machines. Back in the 16 bit real mode DOS days, writing to the first K of m
by WalterBright 6y ago
Hardware seg faults for accessing the first page in memory are the norm for modern machines.
Back in the 16 bit real mode DOS days, writing to the first K of memory would trash the interrupt vector table. But that was a 1980 design.
- pjmlp 6y agoThat doesn't work in WebAssembly, so you will get exactly the same corruption as in MS-DOS days.
- WalterBright 6y agoI don't know anything about WebAssembly, but that sounds like a major design flaw in it.
- pjmlp 6y agoWebAssembly has several flaws, one of them is lack of bounds checking for memory access inside of the same linear segment, so while it is sandboxed it cannot prevent that the data turns into garbage, and thus be open to attacks that change the outcome of public APIs based on internal memory state. But hey, it sells better than Flash or PNaCL.
- sedatk 6y agoYes, but when you put it like that, it feels like D makes use of a certain hardware protection unlike other languages. The article states "none" for those cases.