r/shittyprogramming • • Feb 03 '17

[low effort] 3 billion devices run Java

But none of them the same version.

492 Upvotes

18 comments sorted by

View all comments

192

u/rabidbunnygopoop Feb 03 '17

Security through diversification. You might be able to come up with an exploit that works on 1 or 2 devices, but the more versions there are, the smaller the pool of devices that it works on. Survival of the fittest, dude. Natural selection in an artificial ecosystem.

14

u/JPaulMora Feb 03 '17

True.. except the same can be said in reverse: write a virus in java and 3billion devices support it.

Also, if you find a bug in v1.8 for all 64bit systems, most likely all versions pre-1.8 will have it too. So you can exploit all java in 64bit systems, which is a lot.

7

u/royisabau5 Feb 13 '17

That's why I only run java in 128 bit systems