You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MOD-11650] Fix Out-of-Bounds Write in Vector Preprocessing (#784)
* rename dataSize->getStoredDataSize
* missing rename
* format
* add input blob size to AbstractIndexInitParams
in VecSimIndexAbstract move data members to private when possible
DONT FIX LEAK YET
Factories:
move NewAbstractInitParams to a general location (new file factory_utils)
replace it in all factories
* try sanitizer
* run sanitizer
* runanyway
* rervt task unit test
use sanitizer in pull request
* fix leak in input bob size
* fix int8/uint8 elementSizeEstimation tests
This caused a buffer overflow because setup<TieredIndexParams> didn't set the data type to INT8, creating a float32 index instead.
DataBlock::addElement() tries to copy dim * sizeof(float) bytes, but the allocated buffer is only dim * sizeof(int8) bytes, causing a read overflow.
* run codecov with sanitizer (also intek)
* some fixes and assertion
* fix uint8
* fix again
* fix possible warning abour divison by zero by checking quantBits with constexpr
* TO REVERT!
fix leaks that will be moved to a separate PR
it was failing only with codecov becuase only there we use FP64_TESTS=1
Prevent template deduction errors in GenerateAndAddVector by making data_t parameter non-deducible
Used std::type_identity<data_t>::type for the value parameter to force explicit template specification (e.g., GenerateAndAddVector<double>()) instead of allowing compiler to incorrectly deduce int from literal values, which caused buffer overflows when index expected different data types.
* Revert "TO REVERT!"
This reverts commit af844ec.
* rever ci changes
* calculate EstimateElementSize accroding to the stored vector size
add tests
* revert unrelated change in cmake.san
* add batch itertor blob correctness to int8 tests
fix getQueryBlob in tiered
add getHNSWIterator to tiered batch itertor if its BUILD_TESTS
* apply suggesting
0 commit comments