aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/proxy/tcpproxy.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-20 20:40:09 +0100
committerStefan Boberg <[email protected]>2026-03-20 20:40:09 +0100
commit85c043ca69a7738293577bf03300e1700ab51565 (patch)
tree80605d1cc26de764825e93fc5e697e1ecbf859a4 /src/zenserver/proxy/tcpproxy.cpp
parentadded some clang-tidy suppressions to .clangd (diff)
downloadzen-85c043ca69a7738293577bf03300e1700ab51565.tar.xz
zen-85c043ca69a7738293577bf03300e1700ab51565.zip
Add validation tests and harden legacy package parser
- Add tests for ParsePackageMessage validation: truncated header, bad magic, attachment count overflow, truncated tables/data, local ref rejection, and CbPackageReader equivalents - Add tests for legacy::TryLoadCbPackage: empty input, zero-size binary rejection, null mapper handling, hash validation toggle - Harden legacy parser: reject zero-size binary fields that would desync the reader, replace ZEN_ASSERT(Mapper) with graceful failure, add optional ValidateHashes parameter for resolved attachment data - Rename test cases from "usonpackage.*" to "cbpackage.*" - Fix CbPackage.LocalRef test to pass kAllowLocalReferences
Diffstat (limited to 'src/zenserver/proxy/tcpproxy.cpp')
0 files changed, 0 insertions, 0 deletions