Fix cvs ignore end checking

cvs accepts only packets with CVS_LOGIN signature, and then does the addition with length of the signature plus 1 and searches for '\n' character while ptr !=end. The problem occurs when we provide a packet containing only the signature, this will lead to out of bounds loop because ptr will have a pointer value greater than the end