mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
Add UBSAN findings TODO and improve vec-mismatch fuzzer
Document three classes of undefined behavior found by UBSAN: function pointer type mismatches, misaligned f32 reads, and float-to-integer overflow in vec_quantize_int8. Improve vec-mismatch fuzzer to cover all error-path cleanup patterns: type mismatches, dimension mismatches, single-arg functions, and both text and blob inputs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4ce1ef3c6f
commit
b669801d31
9 changed files with 190 additions and 90 deletions
BIN
tests/fuzz/corpus/vec-mismatch/dim_mismatch_4d_2d
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/dim_mismatch_4d_2d
Normal file
Binary file not shown.
BIN
tests/fuzz/corpus/vec-mismatch/json2d_invalid_blob
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/json2d_invalid_blob
Normal file
Binary file not shown.
BIN
tests/fuzz/corpus/vec-mismatch/json4d_invalid_blob
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/json4d_invalid_blob
Normal file
Binary file not shown.
BIN
tests/fuzz/corpus/vec-mismatch/single_f32_bad_text
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/single_f32_bad_text
Normal file
Binary file not shown.
BIN
tests/fuzz/corpus/vec-mismatch/single_normalize_json
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/single_normalize_json
Normal file
Binary file not shown.
BIN
tests/fuzz/corpus/vec-mismatch/type_mismatch_f32_bit
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/type_mismatch_f32_bit
Normal file
Binary file not shown.
BIN
tests/fuzz/corpus/vec-mismatch/type_mismatch_f32_int8
Normal file
BIN
tests/fuzz/corpus/vec-mismatch/type_mismatch_f32_int8
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue