mirror of https://github.com/aria2/aria2
Added assertion in shiftBuffer to check size.
parent
02ca3ed0b7
commit
e5c27034f3
|
@ -157,6 +157,7 @@ bool MSEHandshake::send()
|
|||
|
||||
void MSEHandshake::shiftBuffer(size_t offset)
|
||||
{
|
||||
assert(rbufLength_ >= offset);
|
||||
memmove(rbuf_, rbuf_+offset, rbufLength_-offset);
|
||||
rbufLength_ -= offset;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue