[tor-commits] [tor/master] Avoid undefined behaviour when parsing HS protocol versions