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

Fix int overflow in SDHC card capacity calculation #43

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

oyama
Copy link
Owner

@oyama oyama commented Jun 16, 2024

Corrected a problem with int overflow and incorrect calculation when calculating the capacity of 4-32 GB SDHC cards.
Changed the return value of the size function of blockdevice from size_t to uint64_t.

@oyama oyama merged commit 5e9791f into main Jun 16, 2024
2 checks passed
@oyama oyama deleted the fix/sdhc-size-recognition branch June 16, 2024 10:39
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

Successfully merging this pull request may close these issues.

1 participant