Re:APFS does not normalize Unicode filenames
by TazeTSchnitzel on Saturday March 25, 2017 @10:24AM
(#13955778)
> And much, much harder for applications if that "bag of bytes" is an invalid UTF-8 sequence.
It makes copying-and-pasting filenames as Unicode unreliable, for one thing.
Re:APFS does not normalize Unicode filenames
by asdfaoeu on Saturday March 25, 2017 @09:10AM
(#13955442)
You can handle that fine provided you don't assume that.
> I'd really hope that Apple checks that the filenames are valid UTF-8 as they otherwise can end up with very interesting security bugs.
I think that's a bit pessimistic as Linux has run for year like that without any real issues.
And much, much harder for applications if that "bag of bytes" is an invalid UTF-8 sequence. You will end up with an invalid string (or an exception), and trying to open that file will then fail.
I'd really hope that Apple checks that the filenames are valid UTF-8 as they otherwise can end up with very interesting security bugs.