Skip to content
This repository was archived by the owner on Jun 21, 2026. It is now read-only.

Fix crash in Voice::Impl::fillInterpolated()#1314

Open
leso-kn wants to merge 1 commit into
sfztools:developfrom
leso-kn:fix-fillinterpolated-crash
Open

Fix crash in Voice::Impl::fillInterpolated()#1314
leso-kn wants to merge 1 commit into
sfztools:developfrom
leso-kn:fix-fillinterpolated-crash

Conversation

@leso-kn

@leso-kn leso-kn commented Apr 9, 2025

Copy link
Copy Markdown

The method triggers an assert in recent versions of abseil when there is a buffer overflow.

This PR introduces a check of the destination buffer size and aborts the interpolation loop when the buffer limit is reached.

Tested and effective for abseil v20240722 on AlpineLinux edge with no audible difference.

Recent versions of abseil assert on possible buffer overflow
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant