More pidl issues in Samba 3

Gerald (Jerry) Carter jerry at samba.org
Thu Sep 28 16:32:18 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 ?





cheers, jerry



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFG/kSIR7qMdg1EfYRAlo1AKDwLvPCcpY9YvJ3P7pQLdztCbD+OQCaAjLL
mAIBxIG4YimehJOvppFLHFs=
=/b6e
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list