mkfatfs
mkfatfs copied to clipboard
memory leak and file name processing error
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".