CVS update: samba/source/lib

Jeremy Allison jra at au2.samba.org
Sat Mar 3 11:03:37 EST 2001


Date:	Saturday March 3, 2001 @ 11:03
Author:	jra

Update of /data/cvs/samba/source/lib
In directory samba:/tmp/cvs-serv8872/lib

Modified Files:
      Tag: SAMBA_2_2
	talloc.c 
Log Message:
Added a simple talloc_realloc and changed some code in spoolss to use it.
It works by adding a TALLOC_ALIGN_SIZE (32 byte) prefix to each talloc area,
and storing the current size and back pointer to the talloc_chunk area that
points to the current chunk we're in. We check if we're the last area at
the end of the chunk (which we commonly are when doing a Realloc loop)
and there's free space then we just adjust the length and return the
same value, otherwise we talloc the new size, and then memcpy.
Checked out and seems to be fine, and the maximum TALLOC size returned
is 24k (although I intend to check with a 10,000 print job list output).
Jeremy.





More information about the samba-cvs mailing list