Straightforward cherrypick, smoke tested on linux.
Your patch has been applied to the release/2.6 branch.
commit 946219115d00c6ae658afcf538249e721e6bd600 (release/2.6)
Author: Frank Lichtenheld
Date: Fri Sep 22 18:04:41 2023 +0200
buffer: use memcpy in buf_catrunc
Signed-off-by: Fra
Acked-by: Gert Doering
Change looks good (less +/-1, so easier for my old brain), and our nice
and shiny new unit test confirms that things still work.
Your patch has been applied to the master branch.
commit c89a97e449baaf60924a362555d35184f188a646
Author: Frank Lichtenheld
Date: Wed May 17