On 3/18/19 4:29 AM, Peter Maydell wrote: > In the meantime, switch to using __builtin_memcpy() in the > bswap.h accessor functions. This will make us robust against things > like this fortify library in the short term. In the longer term > it will mean that we don't end up with these functions being really > badly-performing even if the semantics of the out-of-line memcpy() > are correct. > > Reported-by: Fernando Casas Schössow <casasferna...@outlook.com> > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > ---
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~