Messages in this thread | | | Subject | Re: [PATCH] scsi: qedf: Avoid reading past end of buffer | From | "Martin K. Petersen" <> | Date | Mon, 08 May 2017 22:08:44 -0400 |
| |
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
| |