Add sanitizers to unit tests. (#26571)

* Fix out-of-bounds read in encoder test initialisation

* Reject out-of-range tracks in sequencer track activation

* Compare unaligned flash word bytewise in emulated EEPROM test

* Abort on out-of-range access in the test platform EEPROM emulation

* Add SANITIZE=yes to the native unit test build
This commit is contained in:
Nick Brassel
2026-11-12 12:28:46 +11:00
committed by GitHub
parent 1b6cda50b9
commit 8380b05c39
7 changed files with 50 additions and 7 deletions
+6 -1
View File
@@ -24,6 +24,11 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitize: ['no', 'yes']
container: ghcr.io/qmk/qmk_cli
steps:
@@ -35,4 +40,4 @@ jobs:
run: pip3 install -r requirements-dev.txt
- name: Run tests
run: qmk test-c -j $(nproc)
run: qmk test-c -j $(nproc) -e SANITIZE=${{ matrix.sanitize }}