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

Bart Van Assche Bart.VanAssche at wdc.com
Wed Jul 19 03:06:20 UTC 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 dm-devel mailing list