cgrzemba / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

92c56e9 Ticket 49424 - Resolve csiphash alignment issues

Authored and Committed by William Brown 6 years ago
    Ticket 49424 - Resolve csiphash alignment issues
    
    Bug Description:  On some platforms, uint64_t is not the same size
    as a void * - as well, if the input is not aligned correctly, then
    a number of nasty crashes can result
    
    Fix Description:  Instead of relying on alignment to be correct,
    we should memcpy the data to inputs instead.
    
    https://pagure.io/389-ds-base/issue/49424
    
    Author: wibrown
    
    Review by: lslebodn, cgrzemba, vashirov, mreynolds (Thanks!)
    
    (cherry picked from commit 751446440f5269a246e6e652a64e63aa5933734a)