We used to return the buffer itself not its copy.  Are you sure it is safe to return a copy here?