Page MenuHomeFreeBSD

linuxkpi: Change `strscpy()` and `strscpy_pad()` to make their `len` argument optional
ClosedPublic

Authored by dumbbell on Sun, Jun 14, 9:23 AM.
Tags
None
Referenced Files
F161671356: D57585.id.diff
Sun, Jul 5, 7:54 PM
F161656592: D57585.id.diff
Sun, Jul 5, 4:17 PM
Unknown Object (File)
Sat, Jul 4, 8:39 AM
Unknown Object (File)
Fri, Jul 3, 6:29 AM
Unknown Object (File)
Thu, Jul 2, 3:34 AM
Unknown Object (File)
Wed, Jul 1, 1:27 PM
Unknown Object (File)
Sun, Jun 28, 1:44 PM
Unknown Object (File)
Thu, Jun 25, 12:01 PM
Subscribers

Details

Summary

The previous implementation always took the len but now, it is optional and defaults to the size of dst.

The DRM drivers started to use strscpy() without the len in Linux 6.13.

This is part of the update of DRM drivers to Linux 6.13.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable