←back to thread

311 points thunderbong | 3 comments | | HN request time: 0s | source
Show context
sudhirj ◴[] No.42202147[source]
Weren’t there a couple of anecdotes where Windows couldn’t fix a bug because some popular game (maybe SimCity?) depended on it, so the devs hardcoded a SimCity check inside Windows and made the bug happen if it was running?
replies(2): >>42202200 #>>42202221 #
masklinn ◴[] No.42202200[source]
It was not a bug in windows, it was a bug in SimCity: it would UAF some memory, but the Windows 3.x allocator did not unmap / clear that memory so it worked.

Windows 95 changed that, and so one of the compatibility shims it got is that the allocator had a 3.x adjacent mode, which would be turned on when running SimCity (and probably other similarly misbehaving software as well).

Nowadays this is formalised in the compatibility engine (dating back to windows do), which can enable special modes or compatibility shims for applications (windows admins trying to run legacy or unmaintained applications can manage the application of compatibility modes via the “compatibility administrator”).

replies(1): >>42202236 #
praptak ◴[] No.42202236[source]
Still a pretty good example of having to support something which is definitely not part of the official spec.
replies(1): >>42202413 #
guappa ◴[] No.42202413[source]
Had it been open source, they could have just fixed the software instead
replies(1): >>42202453 #
masklinn ◴[] No.42202453[source]
Fixing the upstream would not have updated it on the millions of machines running it, which is what they wanted to not break.
replies(1): >>42205835 #
1. cesarb ◴[] No.42205835[source]
> Fixing the upstream would not have updated it on the millions of machines running it,

It was a very different world back then. You couldn't even assume a dial-up connection.

Nowadays, the software would have been automatically updated for 99% of the machines running it, whether they wanted that update or not.

replies(1): >>42205920 #
2. masklinn ◴[] No.42205920[source]
Hah. Debian will happily keep shipping libraries years out of date. Then complain that you’re holding them back when they finally wake up and update sid to a bleeding edge release.
replies(1): >>42211819 #
3. guappa ◴[] No.42211819[source]
I feel like you have no idea on how debian works, but have read an article 25 years ago and are angry about that ever since.

The proof is this totally OT comment that doesn't even make any sense :)