commit | e1ba77c96ce3d4ed8fbb9f0e907e2dd17abab575 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Wed Apr 30 18:45:51 2025 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon May 05 14:19:20 2025 -0600 |
tree | e29bdfe6cf6941ff1217d88d738941d9d02924c5 | |
parent | 24b11a465fe9e6120fe947af1dcc0d2b99047387 [diff] |
fs: exfat: Use strncpy() and bail on too long filenames 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) Signed-off-by: Marek Vasut <marex@denx.de>