[PATCH 1/2] fs: exfat: Use strncpy() and bail on too long filenames
Tom Rini
trini at konsulko.com
Tue May 6 01:35:35 CEST 2025
On Wed, 30 Apr 2025 18:45:51 +0200, Marek Vasut wrote:
> In case the filename is too long, longer than PATH_MAX - 1, it
> would overflow dirs->dirname array. Add missing check and also
> use strncpy() to prevent the overflow in any case.
>
> Fixes CID 550305: Security best practices violations (STRING_OVERFLOW)
>
>
> [...]
Applied to u-boot/master, thanks!
[1/2] fs: exfat: Use strncpy() and bail on too long filenames
commit: 4ba2fe14f2cecf7b614220e8e19c1fcdda92b748
[2/2] fs: exfat: Inhibit unused exfat_humanize_bytes() and exfat_print_info()
commit: 4d3b5c679bc9d5c6cbbeedcc1e4a186f1cc35541
--
Tom
More information about the U-Boot
mailing list