Bug in Bitcoin code also opens smaller cryptocurrencies to attacks