[Samba] string overflow in rpcclient add "printer" driver command

Emanuel Moura dos Santos emanuelsan at terra.com.br
Fri Jun 8 20:31:24 GMT 2007


---------- Cabeçalho original -----------

De: "Jeremy Allison" jra at samba.org
Para: "Emanuel Moura dos Santos" emanuelsan at terra.com.br
Cópia: samba at lists.samba.org
Data: Wed, 6 Jun 2007 17:33:19 -0700
Assunto: Re: [Samba] string overflow in rpcclient add "printer" driver command

> On Wed, Jun 06, 2007 at 06:36:28PM -0300, Emanuel Moura dos Santos wrote:

> > I get the folowing error msg in rpcclient -c 'adddriver' command:
> > 
> > ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver "Windows NT x86" "My Driver Name 001:aaa]

> > My command is like this:
> > 
> > rpcclient MYSRV -s /etc/samba/smb.conf -A auth.txt -c 'adddriver "Windows NT x86" "My Driver Name 001:
> >       aaaaaa.001:aaaaaa.002:aaaaaa.003:aaaaaa.004::NULL:aaaaaa.001,
> >       ..... bla bla bla ... bbbbbbb.022, ... bla bla bla ...
> >       aaaaaaa.077,ccccccc.078"'

> Good catch. Can you try this patch instead ? Let me know if it works and
> I'll check it in.

Thanks. The your patch is Ok. But, second part of my initial report stay loosing files. The ntdrivers.tdb file
cut my file list.




More information about the samba mailing list