Make sure Oscillator read index is in valid range.
In ProcessARateVectorKernel we forgot to mask v_read0 to contain the index in a valid range. v_read1 was handled correctly, and ProcessKRateVector also masked the indices. Apply the mask. Manually tested this agains the repro case from the bug and no issues occur. Previously, I could easily reproduce the issue. Added simple test case where detune overflows. Output should be zero. Bug: 1115907 Change-Id: Id7af713b935bd7cc14669630ddb1d04c3b1b2c39 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358593 Commit-Queue: Raymond Toy <rtoy@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#799646}
Showing
Please register or sign in to comment