1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

The buffer passed to an sbuf drain callback is not necessarily

null-terminated, so don't assume that it is.

Reported by:	pho
X-MFC-With:	r291059
This commit is contained in:
Mark Johnston 2015-11-23 18:45:35 +00:00
parent 46e3a1113e
commit 1155462e3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291217

View File

@ -2987,7 +2987,7 @@ static int
witness_output_drain(void *arg __unused, const char *data, int len)
{
witness_output("%s", data);
witness_output("%.*s", len, data);
return (len);
}