4 ms·
Remember, this was all written before computer networking, let alone internetworking. The level of defensiveness required to write network-facing code wasn't re
by pjc50 11y ago
Remember, this was all written before computer networking, let alone internetworking. The level of defensiveness required to write network-facing code wasn't realised at the time.
The prevailing view of how to do things was based on tape (magnetic or paper). In that context, it's really inconvenient to know how long your tape is before you write it and really convenient to just keep reading it until you hit a marker or the hardware says "sorry, end of tape". See also the "end of file" character, ctrl-D.
Judging history in hindsight is uncharitable.
- pjmlp 11y agoIgnoring history is even worse. Burroughs B5000 in 1961, with memory safe systems programming in an Algol dialect. https://en.wikipedia.org/wiki/Burroughs_large_systems https://en.wikipedia.org/wiki/Burroughs_large_systems Similar examples can be provided for systems older or of similar age to PDP-11.
- Zardoz84 11y agoYou should take on account that PDP-11 was pretty limited. You can't afford "wasting" memory on counters (for strings bigger that 255 chars) on an computer that handled few MiB at best, when you can use the null character trick, plus being efficient on these machine. Also, I think that not was motivation to make it secure on something that was initially a pet project on a unused machine.
- pjmlp 11y agoPDP-11 was certainly more powerful than the Burroughs machines, being one decade newer.
- pjc50 11y ago"An ordinary unprivileged user with sufficient knowledge of the system needs only the ability to be able to modify machine-code in order to penetrate the system completely." http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.162.364&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.162... Security was hard then and continues to be hard now. It would also be nice to have a cost comparison between the various alternatives.