[PATCH v2 1/4] libmultipath: get_udev_uid: make sure pp->wwid is 0-terminated

Bart Van Assche Bart.VanAssche at wdc.com
Tue Jul 18 20:06:20 PDT 2017


On Tue, 2017-07-18 at 09:29 +0200, Martin Wilck wrote:
> If the first WWID_LEN bytes of the uuid_attribute do not contain
> a 0 byte, pp->wwid may end up not properly terminated. Fix it by
> using strlcpy() rather than strncpy().

Reviewed-by: Bart Van Assche <bart.vanassche at wdc.com>


More information about the Linux-nvme mailing list