Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix out-of-bounds access and remove MSVC function export #7

Merged
merged 3 commits into from
May 10, 2024

Conversation

DomClark
Copy link
Member

@DomClark DomClark commented May 9, 2024

Partially reverts #4, and reverts #5. We decided to specify the function export using a linker flag, rather than an attribute in the code, so that the code continues to work with a vanilla ladspa.h. See #5 (comment) for details on the out-of-bounds fix.

Copy link

@Veratil Veratil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and tested MSVC build fixup with LMMS/lmms#6973 fix to CMakeLists.txt for cmt

Copy link

@JohannesLorenz JohannesLorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, though I would suggest to extend the commit message for the first commit from "Remove MSVC dllexport attribute" to something that also explains the background (why this has been done).

src/delay.cpp Show resolved Hide resolved
This reverts commit 835108b.

This change is redundant and does not fix the bug it was intended to.
We now use a linker option to export the function, so that the code
remains compatible with a vanilla ladspa.h when building with MSVC.
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.

4 participants