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-gao hongzhi-gao changed the title Fix/cppclient tsblock Fix/cppclient tsblock deserialize Apr 13, 2026
@hongzhi-gao hongzhi-gao changed the title Fix/cppclient tsblock deserialize Fix/enhance cppclient tsblock deserialize validation Apr 13, 2026
@hongzhi-gao hongzhi-gao changed the title Fix/enhance cppclient tsblock deserialize validation enhance cppclient tsblock deserialize validation Apr 13, 2026
@HTHou HTHou requested a review from jt2594838 April 14, 2026 04:44
@HTHou

HTHou commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

you can rebase the branch to fix the CI

@jt2594838 jt2594838 merged commit 1aba873 into apache:master Apr 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 free to 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