This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new bf6cdf844d0 branch-4.1: [fix] (storage) Fix pointer dereference bug in
LocalFileSystem::list_impl #60907 (#62399)
bf6cdf844d0 is described below
commit bf6cdf844d04e35c6e707a78409f8ae171a1502e
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Apr 11 23:01:38 2026 +0800
branch-4.1: [fix] (storage) Fix pointer dereference bug in
LocalFileSystem::list_impl #60907 (#62399)
Cherry-picked from #60907
Co-authored-by: xuchenhao <[email protected]>
---
be/src/io/fs/local_file_system.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/io/fs/local_file_system.cpp
b/be/src/io/fs/local_file_system.cpp
index 8a41fcce30d..b55e54059cb 100644
--- a/be/src/io/fs/local_file_system.cpp
+++ b/be/src/io/fs/local_file_system.cpp
@@ -219,7 +219,7 @@ Status LocalFileSystem::directory_size(const Path&
dir_path, size_t* dir_size) {
Status LocalFileSystem::list_impl(const Path& dir, bool only_file,
std::vector<FileInfo>* files,
bool* exists) {
RETURN_IF_ERROR(exists_impl(dir, exists));
- if (!exists) {
+ if (!(*exists)) {
return Status::OK();
}
std::error_code ec;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]