Which is why the medical device software industry is so heavily regulated after the Therac-25 incident. Oh, wait, it's not.
https://en.wikipedia.org/wiki/Therac-25