svn commit: samba r25272 - in branches: SAMBA_3_2/source/winbindd SAMBA_3_2_0/source/winbindd

Michael Adam ma at sernet.de
Fri Sep 21 11:12:28 GMT 2007


On Fri, Sep 21, 2007 at 02:55:21AM -0700, Jeremy Allison wrote:
> On Fri, Sep 21, 2007 at 09:52:29AM +0000, obnox at samba.org wrote:
> > Author: obnox
> > Date: 2007-09-21 09:52:28 +0000 (Fri, 21 Sep 2007)
> > New Revision: 25272
> > 
> > WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25272
> > 
> > Log:
> > Fix a bunch of callers of pull_ucs2 that passed -1 for dest_len.
> > 
> 
> Michael, your patch and mine crossed on the wire. Your patch
> is incorrect - we need to be using 'sizeof(target_area)' not
> sizeof(fstring) - that way can lead to errors if the data
> size gets changed.

Jeremy, this is of course much much better. Thanks!

Btw: Most callers i saw use "sizeof(target_area) - 1".
But if I did not misread the pull_ucs2 code, it should
be safe to specify sizeof(target_area). Is that right?

Michael

-- 
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE


More information about the samba-technical mailing list