Re: [PATCH V2] Fix NULL dereference in super_by_fd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2022/12/15 19:50, Mariusz Tkaczyk wrote:
> On Wed, 14 Dec 2022 11:17:41 +0800
> lixiaokeng <lixiaokeng@xxxxxxxxxx> wrote:
> 
>> strcpy(st->devnm, devnm);
> 
> Hi,
> Please use strncpy or snprintf here.

Thanks for your advice, but the length of devnm is not
a defined value. I will keep it as the old codes.

> 
> Thanks,
> Mariusz
> 
> .
> 



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux