svn commit: samba r18978 - in
abartlet at samba.org
Fri Sep 29 03:44:25 GMT 2006
On Thu, 2006-09-28 at 18:53 -0400, simo wrote:
> On Thu, 2006-09-28 at 17:06 +0000, abartlet at samba.org wrote:
> > Author: abartlet
> > Date: 2006-09-28 17:06:38 +0000 (Thu, 28 Sep 2006)
> > New Revision: 18978
> > WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18978
> > Log:
> > Fix bug found by:
> > http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
> > The issue here is that if the UTF8 conversion fails, because this
> > isn't actually UTF8 data, then we need to do a binary compare instead.
> I think we should just fail. Why should we compare wrong data anyway?
> Can you give me a valid case where we want to allow invalid utf8
Imagine a qsort() function, based on this comparison: What would happen
if two strings always returned '-1' against each other, even if
I'm not sure there is a valid way to fail this, and given this is the
default comparison function, a binary compare seems reasonable to me...
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc. http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060928/6a612f6c/attachment.bin
More information about the samba-technical