apply lateRL offset to memcpy dest, not src

This commit is contained in:
Brett Nicholas 2023-11-01 14:32:11 -06:00
parent 15fdf6eccc
commit 9d632ccaa6

View File

@ -26884,7 +26884,7 @@ int PickHashSigAlgo(WOLFSSL* ssl, const byte* hashSigAlgo, word32 hashSigAlgoSz)
/* add data, put in buffer if bigger than static buffer */
info->packets[info->numberPackets].valueSz = totalSz;
if (totalSz < MAX_VALUE_SZ) {
XMEMCPY(info->packets[info->numberPackets].value, data + lateRL,
XMEMCPY(info->packets[info->numberPackets].value + lateRL, data,
sz);
}
else {