Skip to content

test(host-audio): widen before multiplying the chunk byte sizes - #5

Merged
squatchlr merged 2 commits into
mainfrom
fix/codeql-mult-cast
Nov 19, 2026
Merged

squatchlr merged 2 commits into
mainfrom
fix/codeql-mult-cast

Conversation

@squatchlr

Copy link
Copy Markdown
Collaborator

CodeQL cpp/integer-multiplication-cast-to-long, alerts 1 and 2 (hosts/tests/test_host_audio.cpp:93-94): n * channels was multiplied in 32 bits before sizeof(float) widened it. n is cast to size_t first. Test-only; built and run with ASan and UBSan: host audio: all tests passed.

CodeQL cpp/integer-multiplication-cast-to-long (alerts 1 and 2): n * channels was multiplied in 32 bits before sizeof(float) widened it. Cast n to size_t first.
Records the widened hosts/tests/test_host_audio.cpp (squatch-dsp carries the same fix) and brings tools/release-scan, release-signing and their tests in step with squatch-dsp, which changed them in #5 after the last export; check-upstream on main would otherwise fail on the next push.
@squatchlr
squatchlr merged commit f8260d3 into main Nov 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant