[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-directory-devel
Subject:    [389-devel] Please review: [389 Project] #547: [Patch] Incorrect assumption in ndn cache
From:       Noriko Hosoi <nhosoi () redhat ! com>
Date:       2013-01-08 1:21:24
Message-ID: 50EB7494.8010002 () redhat ! com
[Download RAW message or body]

https://fedorahosted.org/389/ticket/547

https://fedorahosted.org/389/attachment/ticket/547/0001-Ticket-547-Incorrect-assumption-in-ndn-cache.patch


Bug Description: In ndn_cache_lookup, to determine the given dn
is already normalized or not, the length is compared with the
normalized dn length.  If they match, it considers the given dn
is already normalized.  But there are cases even if the lengths
are equal, the given dn may not be normalized yet.
(e.g., 'cn="o=ABC",o=XYZ' vs. 'cn=o\3DABC,o=XYZ')

Fix Description: This patch adds another check: if the dn and
normalized dn length match, call memcmp to compare the 2 dn's.
When memcmp returns 0, ndn_cache_lookup returns the passed dn.
--
389-devel mailing list
389-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic