exit correctly when there is not enough buffer to parse a number
4.1.3