Re: [PATCH] scsi: qedf: Avoid reading past end of buffer

From: Martin K. Petersen
Date: Mon May 08 2017 - 22:09:01 EST



Kees,

> Using memcpy() from a string that is shorter than the length copied
> means the destination buffer is being filled with arbitrary data from
> the kernel rodata segment. Instead, use strncpy() which will fill the
> trailing bytes with zeros.

Applied to 4.12/scsi-fixes, thanks!

--
Martin K. Petersen Oracle Linux Engineering