Skip to content

Fix DelayLine index wrapping - #4

Open
PlasmaChroma wants to merge 1 commit into
Befaco:vcvfrom
PlasmaChroma:fix/delay-line-buffer-wrap
Open

Fix DelayLine index wrapping#4
PlasmaChroma wants to merge 1 commit into
Befaco:vcvfrom
PlasmaChroma:fix/delay-line-buffer-wrap

Conversation

@PlasmaChroma

Copy link
Copy Markdown

Summary

Fix a potential out-of-bounds read in DelayLine::readAt() when interpolation requests a sample beyond the ring-buffer boundary.

The read index is now normalized with signed modulo before wrapping, ensuring it remains within the buffer.

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