Skip to content

AUv2 wrapped view: fix uninitialized clap_gui_resize_hints_t usage - #598

Open
emuell wants to merge 1 commit into
free-audio:nextfrom
emuell:fix/resize_hints
Open

emuell wants to merge 1 commit into
free-audio:nextfrom
emuell:fix/resize_hints

Conversation

@emuell

@emuell emuell commented Oct 14, 2026

Copy link
Copy Markdown

initWithAUv2 reads a clap_gui_resize_hints_t without initializing it and ignores the return value of get_resize_hints.

So when a plugin returns false, without filling in the struct, the view's autoresizing mask is currently built from random memory, whatever is on the stack.

* CLAP's get_resize_hints is optional. Initialize the hints and respect the return value.
emuell added a commit to emuell/plugin-things that referenced this pull request Oct 14, 2026
@defiantnerd
defiantnerd changed the base branch from main to next October 15, 2026 11:40
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