Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free cluster chain error results in disk leakage #9

Open
stayclean opened this issue Feb 28, 2019 · 0 comments
Open

Free cluster chain error results in disk leakage #9

stayclean opened this issue Feb 28, 2019 · 0 comments

Comments

@stayclean
Copy link

In free cluster chain func:
two mistakes:
1.
fat_entry starts from FAT[cluster], and in the while loop, the fat_entry is updated again before set FAT[cluster] to 0x0, thus cause the FAT[cluster] not dereferenced.
2.
The last eoc in fat not been released!

This cause 2 clusters leakage in a single free cluster call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant