Skip to content

Fix null termination of CLAP metadata strings - #179

Merged
baconpaul merged 1 commit into
free-audio:mainfrom
Stormrage-DJ:fix/null-terminate-clap-strings
Jul 21, 2026
Merged

Fix null termination of CLAP metadata strings#179
baconpaul merged 1 commit into
free-audio:mainfrom
Stormrage-DJ:fix/null-terminate-clap-strings

Conversation

@Stormrage-DJ

Copy link
Copy Markdown
Contributor

Replaces three bounded strncpy calls with snprintf in the JUCE CLAP wrapper.

When an input string fills the destination buffer exactly, strncpy may omit
the terminating NUL byte. The replacement preserves bounded truncation while
guaranteeing a valid C string for CLAP hosts.

Validation:

  • Applied cleanly to current main
  • Strict Windows CLAP build completed successfully

@baconpaul

Copy link
Copy Markdown
Collaborator

Thanks!

@baconpaul
baconpaul merged commit 54b3c32 into free-audio:main Jul 21, 2026
15 checks passed
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.

2 participants