talloc()

Luke Kenneth Casson Leighton lkcl at samba.org
Mon Aug 14 06:10:01 GMT 2000


On Mon, 14 Aug 2000, Luke Kenneth Casson Leighton wrote:

> On Fri, 11 Aug 2000, Andrew Tridgell wrote:
> 
> > Luke,
> > 
> > nope, that makes no sense. There is no allocated area when you ask for
> > zero bytes.
> 
> zero bytes returns NULL?

... ah, you mean that when a talloc of zero is requested, no advance is
made on the pointer.

... then, an advance of 8 bytes should be made, filled with
0xdeadbeefbeefdead and then address+4 returned.







More information about the samba-technical mailing list