This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit a227cda863d3cd0d6da85cd466d103face595b55
Author: zy-kkk <[email protected]>
AuthorDate: Tue Oct 3 07:52:47 2023 -0500

    [fix](jdbc catalog) fix jdbc catalog read bitmap data crash (#25034)
---
 be/src/util/bitmap_value.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/be/src/util/bitmap_value.h b/be/src/util/bitmap_value.h
index 410f542a99a..f91ac507707 100644
--- a/be/src/util/bitmap_value.h
+++ b/be/src/util/bitmap_value.h
@@ -1259,10 +1259,10 @@ public:
     }
 
     static std::string empty_bitmap() {
-        static BitmapValue btmap;
+        static BitmapValue bitmap;
         std::string buf;
-        buf.resize(btmap.getSizeInBytes());
-        btmap.write_to((char*)buf.c_str());
+        buf.resize(bitmap.getSizeInBytes());
+        bitmap.write_to(buf.data());
         return buf;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to