mkfatfs icon indicating copy to clipboard operation
mkfatfs copied to clipboard

memory leak and file name processing error

Open WLimin opened this issue 1 year ago • 0 comments

There is some memory leak risks in pack_fat.cpp, such as line 150, 229, etc. It should add "fclose(f_src)" segment. And in same file, at line 276, "if (ent->d_name[0] == '.')" should be "if (strcmp(ent->d_name,".")==0 ||strcmp(ent->d_name,"..")==0 )", it will ignore the filename like ".exclude.files".

WLimin avatar Jan 04 '24 08:01 WLimin