mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 17:16:16 +00:00
CodeQL flagged the writeWAV cast of strconv.Atoi's result to uint32 (alert 148). Two-layer defence: the handler rejects sample-rate query params outside [8000, 192000] before parsing ever reaches Render, and WithDefaults snaps any out-of-range caller-supplied SampleRate back to the default before renderChirp allocates buffers sized by it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>