relan / exfat

Free exFAT file system implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when reading directory

tspivey opened this issue · comments

Steps to reproduce:

dd if=/dev/zero of=exfat.img bs=1024k count=10
mkfs.exfat exfat.img
mount exfat.img /mnt
touch /mnt/$'\355''a '
ls /mnt

After running that, I get:
ls: reading directory '/mnt': Software caused connection abort

commented

Thanks for the detailed bug report!

The root cause is the utf8_to_wchar() function: is does not check the upper 2 bits of the 2nd and subsequent bytes in the UTF-8 sequence.

commented

Fixed in 66e3a25.

commented

Fixed in v1.4.0.