[389-devel] Please review: [389 Project] #47939: Malformed cookie for LDAP Sync makes DS crash

Noriko Hosoi nhosoi at redhat.com
Tue Nov 4 01:15:21 UTC 2014


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

https://fedorahosted.org/389/attachment/ticket/47939/0001-Ticket-47939-Malformed-cookie-for-LDAP-Sync-makes-DS.patch

Note: I added additional check for the cookie_change_info value.  If 
non-digit is given, it is now releasing Sync_Cookie and return NULL.

    * Format of cookie: server_signature#client_signature#change_info_number

--- a/ldap/servers/plugins/sync/sync_util.c
+++ b/ldap/servers/plugins/sync/sync_util.c
@@ -574,21 +574,32 @@ sync_cookie_parse (char *cookie)
             *p = '\0';
             sc->cookie_client_signature = slapi_ch_strdup(q);
             sc->cookie_change_info = sync_number2int(p+1);
+           if (sc->cookie_change_info < 0) {
+               goto error_return;
+           }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-devel/attachments/20141103/25d091d2/attachment.html>


More information about the 389-devel mailing list