oggpack_writecopy_helper erroneously updates b->buffer
At the end of the aligned block copy path in oggpack_writecopy_helper, the
current code increments b->buffer, which is supposed to be a pointer to the
start of an allocated block of memory, that can later be realloc'd by one of the
oggpack*_write functions or free'd. Instead, endbyte is the member that should
be adjusted.
--- bitwise.c (revision 7651)
+++ bitwise.c (working copy)
@@ -172,7 +172,7 @@
memmove(b->ptr,source,bytes);
b->ptr+=bytes;
- b->buffer+=bytes;
+ b->endbyte+=bytes;
*b->ptr=0;
}