Friday, 28 March 2014

Re: Question about parserutils_buffer_discard

On 27/03/14 15:20, Elie Roudninski wrote:

> I wonder why you would move more data than what's left in the buffer ?
> As i understand the situation, there is buffer->length-(offset+len)
> bytes left, my question is, why not do this :
> memmove(buffer->data + offset, buffer->data + offset + len,
> buffer->length - (offset + len));

Thank you Elie, you are correct. A fix has been commited.

Cheers,

No comments:

Post a Comment