zzzxl1993 commented on code in PR #49472:
URL: https://github.com/apache/doris/pull/49472#discussion_r2041312787


##########
be/src/olap/rowset/segment_v2/inverted_index/analyzer/basic/basic_tokenizer.cpp:
##########
@@ -92,8 +92,7 @@ void BasicTokenizer::cut() {
             const int32_t prev_i = i;
 
             U8_NEXT(s, i, length, c);
-
-            if (c == U_SENTINEL) {
+            if (c < 0) {

Review Comment:
   The modified code checks for c < 0 to cover all invalid UTF-8 encoding cases 
comprehensively.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to