Skip to content

Fix conflicting exported Brotli APIs #2149

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

Open
wants to merge 2 commits into
base: unity-6000.3-mbe
Choose a base branch
from

Conversation

UnityAlex
Copy link
Collaborator

Mono includes and builds the source for the Brotli compression algorithm in its platform specific native library. Since mono dlopens this library the APIs used are exported. However, no changes have been made to the function names allowing for conflicts to happen with other loaded versions of Brotli that might be present. MacOS, for example, provides its own Brotli library and collisions will occur resulting in crashes when Brotli is used there.

  • Should this pull request have release notes?
    • Yes
    • No
  • Do these changes need to be back ported?
    • Yes
    • No
  • Do these changes need to be upstreamed to mono/mono or dotnet/runtime repositories?
    • Yes
    • No

Reviewers: please consider these questions as well! ❤️

Release notes

Fixed UUM-108000 @UnityAlex:
Mono: Fixed crash that would occur due to symbol collision between builtin Brotli compression and system installed versions.

@UnityAlex UnityAlex force-pushed the 6000.3-fix-uum-108000 branch from a2a532e to daed7bc Compare June 16, 2025 13:30
Windows always uses system Brotli lib and needs to be handled differently.
@UnityAlex UnityAlex force-pushed the 6000.3-fix-uum-108000 branch from daed7bc to bf8fe71 Compare June 18, 2025 14:28
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