Bounds checking in HP parse