blikjeham/portall — pull request #3 by sjoerdjob (2014-06-09 20:19:45+00:00)
Title: Do not write beyond the bounds of the buffer.

When buffer->data != buffer->start, the region after pbuffer_end(buffer)
only counts for a part of the pbuffer_unused. In that case, the memset
would write cause an out-of-bounds write.