I'm afraid, your assessment might be correct...I'm sort of amazed at all of the comments in this thread. It's like not a single person in this thread has written software before
However, you have to admit the amount of high profile apps with such weirds bugs is quite high... So either they are not so unintentional or all those software companies (their business is literally software) have poor code quality.
Sadly, I'm pretty sure it's the latter. Most coders don't give a flying f*** if the code is clean or not, let alone efficient or secure as long as it works.