OSDN Git Service

reparse.c: Fix big-endian bug when converting file name to lowercase.
authorErik Larsson <mechie@users.sourceforge.net>
Mon, 4 Jan 2016 09:19:05 +0000 (10:19 +0100)
committerErik Larsson <mechie@users.sourceforge.net>
Mon, 4 Jan 2016 09:19:05 +0000 (10:19 +0100)
commit84f042e73962e5e0a7162051d5f1814e41ef396e
treecb8b07df04dfada67040aab0cc70308db191d452
parent75da0ce302f2b40f52cd178c54f699522f1d6f4e
reparse.c: Fix big-endian bug when converting file name to lowercase.

When looking up the lowercase equivalent of a Unicode character in
ntfs_fix_file_name, no byte swapping was performed on the ntfschar used
as index into the 'locase' array. This would lead to very strange
results on big-endian systems.
libntfs-3g/reparse.c