Fix array overflow in floating point parser