>Here, ReadSocket() returns int while curBytesRead is declared
>unsigned. If ReadSocket() returns -1, the above code may cause
>problem.
You're right - thanks for noting this.
Changing the declaration of "curBytesRead" from "unsigned" to "int"
fixes the problem. (This will be included in the
Dear Sir:
In RTPInterface::handleRead(), the following code may cause vulnerabilities
due to type inconsistency:
Boolean RTPInterface::handleRead(unsigned char* buffer,
unsigned bufferMaxSize,
unsigned& bytesRead,
struct sockaddr_in& fromAddress) {
..
unsigned