Re: [PATCH v3 0/7] scsi: replace deprecated strncpy

2024-03-10 Thread Martin K. Petersen
Justin, > This series contains multiple replacements of strncpy throughout the > scsi subsystem. I've queued this up for 6.10. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] scsi: lpfc: replace deprecated strncpy with strscpy

2024-03-10 Thread Martin K. Petersen
On Mon, 26 Feb 2024 23:53:44 +, Justin Stitt wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > We expect ae->value_string to be NUL-terminated because there's a > comment th

Re: [PATCH v2] scsi: libfc: replace deprecated strncpy with memcpy

2024-03-10 Thread Martin K. Petersen
On Wed, 21 Feb 2024 23:50:26 +, Justin Stitt wrote: > strncpy() is deprecated [1] and as such we should use different apis to > copy string data. > > We can see that ct is NUL-initialized with fc_ct_hdr_fill: > | ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len, > ... > > [.