aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-selectmap.c
diff options
context:
space:
mode:
authorYuezhang Mo <[email protected]>2024-10-28 11:23:36 +0800
committerNamjae Jeon <[email protected]>2024-11-25 17:08:20 +0900
commit184fa506e392eb78364d9283c961217ff2c0617b (patch)
treef7395248bfa08c295714d2400c5e3d6e4b8b3533 /drivers/fpga/xilinx-selectmap.c
parent9f16d5e6f220661f73b36a4be1b21575651d8833 (diff)
exfat: fix out-of-bounds access of directory entries
In the case of the directory size is greater than or equal to the cluster size, if start_clu becomes an EOF cluster(an invalid cluster) due to file system corruption, then the directory entry where ei->hint_femp.eidx hint is outside the directory, resulting in an out-of-bounds access, which may cause further file system corruption. This commit adds a check for start_clu, if it is an invalid cluster, the file or directory will be treated as empty. Cc: [email protected] Signed-off-by: Yuezhang Mo <[email protected]> Co-developed-by: Namjae Jeon <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions