oyama / pico-vfs

Thin virtual file system for Raspberry Pi Pico
Other
5 stars 0 forks source link

Fix int overflow in SDHC card capacity calculation #43

Closed oyama closed 2 weeks ago

oyama commented 2 weeks ago

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.