Bitmain fucked up, with no malice as is revealed by the open nature of their code on github. Malware writers do not publish their code for the whole world to see.
Their fuck-up does NOT make Segwit less dangerous and more acceptable. Segwit, BU - both of them are garbage and insecure solutions. Bitcoin should be left as a safe haven crypto with no changes to the protocol.