Fixing a Buffer Overflow in UNIX v4 Like It's 1973

41 points by rw-rw-rw-


hugoarnal

Great article! Also, the linked mastodon thread about the only copy of UNIX v4 restoration is absolutely great. Glad to see such important media being archived like that.

novalis

But since the code after the badpw label doesn't have a return statement, you can just enter any password, so the buffer overflow isn't buying you anything. (I haven't actually tested this, so maybe C worked differently in the ancient times, but it sure looks bad).