Re: [PATCH] virDevMapperGetTargetsImpl: Use correct length when copying into dm.name

2021-03-08 Thread Daniel P . Berrangé
On Mon, Mar 08, 2021 at 09:14:18AM +0100, Michal Privoznik wrote: > For reasons unknown, when rewriting this code and dropping > libdevmapper I've mistakenly used incorrect length of dm.name. In > linux/dm-ioctl.h the dm_ioctl struct is defined as follows: > > #define DM_NAME_LEN 128 > >

[PATCH] virDevMapperGetTargetsImpl: Use correct length when copying into dm.name

2021-03-08 Thread Michal Privoznik
For reasons unknown, when rewriting this code and dropping libdevmapper I've mistakenly used incorrect length of dm.name. In linux/dm-ioctl.h the dm_ioctl struct is defined as follows: #define DM_NAME_LEN 128 struct dm_ioctl { ... char name[DM_NAME_LEN]; /* device name */ ...