mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
!57 Fix: casefold dlen bug
Some checks failed
CI / build (android, clang, aarch64-linux-android32) (push) Has been cancelled
CI / build (linux-clang, clang) (push) Has been cancelled
CI / build (linux-gcc, gcc) (push) Has been cancelled
CI / build (linux-mingw64-gcc, gcc, -D__USE_MINGW_ANSI_STDIO, x86_64-w64-mingw32) (push) Has been cancelled
CI / build (linux-powerpc64-gcc, gcc, powerpc64-linux-gnu) (push) Has been cancelled
CI / build (macos, clang, macos-latest) (push) Has been cancelled
CI / build (x86, linux-x86-gcc, gcc) (push) Has been cancelled
Some checks failed
CI / build (android, clang, aarch64-linux-android32) (push) Has been cancelled
CI / build (linux-clang, clang) (push) Has been cancelled
CI / build (linux-gcc, gcc) (push) Has been cancelled
CI / build (linux-mingw64-gcc, gcc, -D__USE_MINGW_ANSI_STDIO, x86_64-w64-mingw32) (push) Has been cancelled
CI / build (linux-powerpc64-gcc, gcc, powerpc64-linux-gnu) (push) Has been cancelled
CI / build (macos, clang, macos-latest) (push) Has been cancelled
CI / build (x86, linux-x86-gcc, gcc) (push) Has been cancelled
Merge pull request !57 from nieben/casefold_bugfix
This commit is contained in:
commit
a30faae1c6
@ -483,7 +483,7 @@ f2fs_hash_t f2fs_dentry_hash(int encoding, int casefolded,
|
||||
if (!buff)
|
||||
return -ENOMEM;
|
||||
dlen = table->ops->casefold(table, name, len, buff, F2FS_NAME_LEN);
|
||||
if (dlen < 0) {
|
||||
if (dlen <= 0) {
|
||||
free(buff);
|
||||
goto opaque_seq;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user