aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2023-07-13 21:59:37 +0900
committerNamjae Jeon <[email protected]>2023-07-13 22:02:25 +0900
commitd42334578eba1390859012ebb91e1e556d51db49 (patch)
treeda19ab453e0187e0f2adc7f3b9aa55a74fd4a9df /lib/netdev-notifier-error-inject.c
parentdaf60d6cca26e50d65dac374db92e58de745ad26 (diff)
exfat: check if filename entries exceeds max filename length
exfat_extract_uni_name copies characters from a given file name entry into the 'uniname' variable. This variable is actually defined on the stack of the exfat_readdir() function. According to the definition of the 'exfat_uni_name' type, the file name should be limited 255 characters (+ null teminator space), but the exfat_get_uniname_from_ext_entry() function can write more characters because there is no check if filename entries exceeds max filename length. This patch add the check not to copy filename characters when exceeding max filename length. Cc: [email protected] Cc: Yuezhang Mo <[email protected]> Reported-by: Maxim Suhanov <[email protected]> Reviewed-by: Sungjong Seo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions