gerases / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

3598e70 Ticket 48249: sync_repl uuid may be invalid

1 file Authored by tbordaz 8 years ago, Committed by nhosoi 8 years ago,
    Ticket 48249: sync_repl uuid may be invalid
    
    Bug Description:
    	uuid is computed from nsuniqueid of the entry.
    	If the computed uuid contains NULL char, slapi_ch_smprintf("%s")
    	will stop on the it, leaving the rest of the buffer with the value
    	that was on the heap at that time
    
    Fix Description:
    	use malloc/memcpy instead of slapi_ch_smprintf
    
    https://fedorahosted.org/389/ticket/48249
    
    Reviewed by: Noriko Hosoi (thank you !!)
    
    Platforms tested: F22
    
    Flag Day: no
    
    Doc impact: no
    
    (cherry picked from commit a80fe155cb302e0ef10e14cb238c88698b5995a2)