This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 13a1090f87c [fix] (storage) Fix pointer dereference bug in
LocalFileSystem::list_impl (#60907)
13a1090f87c is described below
commit 13a1090f87c20f1087a5c09ac16bf2958f64c357
Author: xuchenhao <[email protected]>
AuthorDate: Sat Apr 11 21:39:07 2026 +0800
[fix] (storage) Fix pointer dereference bug in LocalFileSystem::list_impl
(#60907)
Fix pointer dereference bug in LocalFileSystem::list_impl.
Issue Number: close #60904
---
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 ed7eb53b2e2..7edabd836c1 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]