samba-tool domain join segfaults (4.16)

Michael Tokarev mjt at tls.msk.ru
Tue May 24 14:33:38 UTC 2022


24.05.2022 17:28, Alexander Bokovoy wrote:
..
>> But I wonder about in.debug field, - I'm not sure where this
>> struct is defined..
> 
> It is defined in the libnet_join's IDL file: source3/librpc/idl/libnet_join.idl
> 
>                  [in] boolean8 debug,
> 
> and boolean8 gets translated to uint8_t in the generated C code.
> 
> Since Python API really needs 'int' there, we need to use local int
> variable and copy its value to &r->in.<variable>. I wonder if other
> places are affected as well.

Yeah. I already created the MR for this, - using local vars here and in
another function: https://gitlab.com/samba-team/samba/-/merge_requests/2544

/mjt



More information about the samba-technical mailing list