More pidl issues in Samba 3
Jelmer Vernooij
jelmer at samba.org
Wed Oct 4 19:25:36 GMT 2006
On Thu, 2006-09-28 at 11:32 -0500, Gerald (Jerry) Carter wrote:
> Gerald (Jerry) Carter wrote:
> > I've now realized that the struct winreg_StringBuf.name
> > buffer comes back with different member than it went
> > in with. Even though the point of this call is to pass
> > in a buffer of the correct size.
> > Is this how things are expected to work ? I can live
> > with it. It's just a little surprising and can lead
> > to memory leaks if you aren't aware of it.
> Actually, I've changed my mind. We end up using twice
> as much memory per call. I'll patch to do a memcpy() for
> ref arrays. I'm assuming here that pointers within
> a [out,ref] structure should also be considered [ref],
> correct ?
No, they can be unique or full as well. Also, I think allocating twice
in this case is ok. The special thing here is that we are doing
conversions on these character strings - so the UTF-8 representation
might be different in size while the UCS-2 representation isn't.
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20061004/847899e7/attachment.bin
More information about the samba-technical
mailing list