happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.97k stars 1.98k forks source link

fix: possible out-of-bounds issues with array access #630

Closed Yang1032 closed 1 year ago

Yang1032 commented 1 year ago

for (file_index=0; file_index<FILE_TYPE_COUNT; file_index++) file_index may be 6 Array 'files[6]' accessed at index 6 which is out of bounds.