Skip to content

enhance cppclient tsblock deserialize validation - #17464

Merged
jt2594838 merged 4 commits into
apache:masterfrom
hongzhi-gao:fix/cppclient-tsblock
Apr 15, 2026
Merged

enhance cppclient tsblock deserialize validation#17464
jt2594838 merged 4 commits into
apache:masterfrom
hongzhi-gao:fix/cppclient-tsblock

Conversation

@hongzhi-gao

Copy link
Copy Markdown
Contributor

Description

Harden C++ TsBlock deserialization: add bounds checks to MyStringBuffer reads; validate counts and minimum header size in TsBlock::deserialize; reject negative TEXT lengths in BinaryArrayColumnDecoder. Add one Catch2 test for a truncated TsBlock payload. On Windows, use a custom test main with WSAStartup/WSACleanup and release the global Session before exit so ctest gets a normal exit code.

Files:Common.cpp, TsBlock.cpp, ColumnDecoder.cpp, sessionIT.cpp, main.cpp

@hongzhi-gaohongzhi-gao changed the title Fix/cppclient tsblockFix/cppclient tsblock deserializeApr 13, 2026
@hongzhi-gaohongzhi-gao changed the title Fix/cppclient tsblock deserializeFix/enhance cppclient tsblock deserialize validationApr 13, 2026
@hongzhi-gaohongzhi-gao changed the title Fix/enhance cppclient tsblock deserialize validationenhance cppclient tsblock deserialize validationApr 13, 2026
@HTHou
HTHou requested a review from jt2594838April 14, 2026 04:44
@HTHou

Copy link
Copy Markdown
Contributor

you can rebase the branch to fix the CI

@jt2594838
jt2594838 merged commit 1aba873 into apache:masterApr 15, 2026
32 of 35 checks passed
hongzhi-gao added a commit to hongzhi-gao/iotdb that referenced this pull request Apr 20, 2026
…#17464)
* fix tsblock deserialize
* fix ut error on win
* Revert "fix ut error on win"
This reverts commit 34b8de4.
jt2594838 pushed a commit that referenced this pull request Apr 21, 2026
#17518)
* fix tsblock deserialize
* fix ut error on win
* Revert "fix ut error on win"
This reverts commit 34b8de4.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hongzhi-gao@HTHou@jt2594838