When resizing a Buffer, don't let it shrink. The worst case is (new_size == 0), which would cause realloc to free the pointer.