You do not know the actual XMR supply. The supply is calculated based on the sum of Coinbase transactions. So in case of an inflation bug that makes e.g. a double spend possible, nobody knows until it is probably too late.