exfat icon indicating copy to clipboard operation
exfat copied to clipboard

Crash when reading directory

Open tspivey opened this issue 4 years ago • 2 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

tspivey avatar Mar 02 '20 08:03 tspivey

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.

relan avatar Mar 02 '20 19:03 relan

Fixed in 66e3a255147d1714f313399bfdfb52fff8afbf50.

relan avatar Mar 07 '20 06:03 relan

Fixed in v1.4.0.

relan avatar Mar 02 '23 20:03 relan