!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

Merge pull request !57 from nieben/casefold_bugfix
This commit is contained in:
openharmony_ci 2024-09-26 02:52:04 +00:00 committed by Gitee
commit a30faae1c6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;
}