Repository navigation
v12.1 — Fuzzing, sanitizer, and SIMD-verification hardening
Fixes
- qfft1d: signed-overflow UB in
magnitudeSquaredat the INT16_MIN both-rails bin ((-32768)² + (-32768)² == 2³¹, one pastINT32_MAX). Found by the nightly fuzzer 53k execs after its first corpus restore; fixed with int64 summation + saturation, and the minimized reproducer is archived in the committed corpus so the PR replay gate guards it permanently (#127) - qaffine:
multiplyByQuantizedMultiplierleft-shift path hardened against signed overflow (#124)
Hardening
- Fuzzing breadth: libFuzzer coverage widened from 1 to 10 int8 kernel harnesses — softmax, FFT, requantize (#124); LSTM (incl. the Phase 12 int16 wide-cell corner), GRU, CfC, softmax-attention, and multi-head linear attention with recurrent state carried across fuzz-driven steps (#125); scalar-vs-AVX2 differential (#129)
- Fuzz CI architecture: deterministic corpus replay is the blocking PR gate; exploratory mutation moved to a nightly matrix that accumulates its corpus across nights via
actions/cache, saving even on crash nights so the inputs that reached a crash are never lost (#124, #126) - TSan gate: the OpenMP-parallelized conv output-filter loop — the library's only concurrent code — is now race-checked on every PR, with Archer (OMPT) integration so TSan sees the runtime's barrier happens-before edges (#128)
- SIMD verification: the hand-written AVX2 intrinsics now execute under ASan+UBSan in CI, and a differential fuzz harness asserts bit-exactness against the scalar reference across ragged tails, misaligned buffers, and full-rail operands (#129)
- Both new gates (
TSan (OpenMP conv path),ASan + UBSan (AVX2 backend)) added to branch-protection required checks; nightly-fuzz status badge added to README and Pages (#130)
Examples
Full Changelog: v12.0...v12.1