You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/10/12 14:53:29 UTC

[doris] 08/14: [Chore](check) add length check for BufferWritable (#25322)

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 1f6ca3b8205f6be9852b996c8878a1f7d1999ea2
Author: Pxl <px...@qq.com>
AuthorDate: Thu Oct 12 10:51:50 2023 +0800

    [Chore](check) add length check for BufferWritable (#25322)
    
    add length check for BufferWritable
---
 be/src/vec/common/string_buffer.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/vec/common/string_buffer.hpp b/be/src/vec/common/string_buffer.hpp
index d5a8f6e8b8e..84f0dffbff7 100644
--- a/be/src/vec/common/string_buffer.hpp
+++ b/be/src/vec/common/string_buffer.hpp
@@ -41,6 +41,7 @@ public:
     }
 
     inline void commit() {
+        ColumnString::check_chars_length(_offsets.back() + _now_offset, 0);
         _offsets.push_back(_offsets.back() + _now_offset);
         _now_offset = 0;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org