Fix potential parser cursor overflow.