Skip to content

utils: if flb_utils_write_str uses SIMD, add missing highbit_set check() detection - #10401

Merged
edsiper merged 2 commits into
masterfrom
simd-write-str
May 30, 2025
Merged

utils: if flb_utils_write_str uses SIMD, add missing highbit_set check() detection#10401
edsiper merged 2 commits into
masterfrom
simd-write-str

Conversation

@edsiper

@edsiper edsiper commented May 29, 2025

Copy link
Copy Markdown
Member

When SIMD is enabled and we do JSON escaping with flb_utils_write_str, we will vectorize the search for special characters that need escaping. The current implementation lacks the highbit check, some issues happens with special Chinese characters.

This PR adds a unit test and proper fix.


Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

cosmo0920 and others added 2 commits May 29, 2025 15:13
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants