fix checking of address range bounds, #29514, fallout from #26868