namjaejeon / exfatprogs

exFAT filesystem userspace utilities
https://github.com/exfatprogs/exfatprogs
GNU General Public License v2.0
33 stars 63 forks source link

mkfs: exfat_create_bitmap: fix garbage in allocated bitmap #48

Closed inste closed 4 years ago

inste commented 4 years ago

Allocating memory without zeroing leads to garbage in bitmap and lost "preallocated" clusters

namjaejeon commented 4 years ago

@inste Looks good. Can we use calloc instead of malloc & memset ? and you can clone --branch=exfat-next https://github.com/exfatprogs/exfatprogs/ and send need to send a pull request to #exfat-next.(not master)

inste commented 4 years ago

@namjaejeon yep, will do in several hours

namjaejeon commented 4 years ago

@inste Thanks!