Searched hist:365819 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/lib/libc/stdlib/
H A Dstrfmon.cdiff 365819 Wed Sep 16 23:06:25 MDT 2020 jhb MFC 365276: Compute the correct size of the string to move forward.

Previously this was counting the amount of spare room at the start of
the buffer that the string needed to move forward and passing that as
the number of bytes to copy to memmove rather than the length of the
string to be copied.

In the strfmon test in the test suite this caused the memmove to
overflow the allocated buffer by one byte which CHERI caught.

Completed in 174 milliseconds