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

dataroaring 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 6e836fe3810 [fix](jdbc catalog) fix jdbc catalog read bitmap data 
crash (#25034)
6e836fe3810 is described below

commit 6e836fe381040f0ba389256c7c0505e3f58542f4
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