aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/compactbinarypackage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename usonpackage_forcelink to cbpackage_forcelinkStefan Boberg14 hours1-1/+1
|
* Add validation tests and harden legacy package parserStefan Boberg14 hours1-8/+112
| | | | | | | | | | | | | - 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
* Add test suites (#799)Stefan Boberg2026-03-021-0/+4
| | | | | | | | | | | | | Makes all test cases part of a test suite. Test suites are named after the module and the name of the file containing the implementation of the test. * This allows for better and more predictable filtering of which test cases to run which should also be able to reduce the time CI spends in tests since it can filter on the tests for that particular module. Also improves `xmake test` behaviour: * instead of an explicit list of projects just enumerate the test projects which are available based on build system state * also introduces logic to avoid running `xmake config` unnecessarily which would invalidate the existing build and do lots of unnecessary work since dependencies were invalidated by the updated config * also invokes build only for the chosen test targets As a bonus, also adds `xmake sln --open` which allows opening IDE after generation of solution/xmake project is done.
* reduced memory churn using fixed_xxx containers (#236)Stefan Boberg2025-03-061-2/+12
| | | | | | * Added EASTL to help with eliminating memory allocations * Applied EASTL to eliminate memory allocations, primarily by using `fixed_vector` et al to use stack allocations / inline struct allocations Reduces memory events in traces by close to a factor of 10 in test scenario (starting editor for project F)
* reduce memory churn (#248)Stefan Boberg2024-12-021-0/+5
| | | | | * eliminated allocation in SetCurrentThreadName * reduced memory allocator activity in cache RPC response building * reduced allocations in compact binary building
* cache optimizations (#88)Dan Engelbrecht2024-05-301-2/+2
| | | | | * message formatting optimizations * bump iostorecompression small value threshold to 1MB
* fix zero size attachment replies (#69)Dan Engelbrecht2024-05-021-51/+34
| | | | - Bugfix: Don't try to respond with zero size partial cache value when partial size is zero - Improvement: Added more validation of data read from cache / cas
* moved source directories into `/src` (#264)Stefan Boberg2023-05-021-0/+1350
* moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees