Skip to content

aiken-uplc: replace the unmaintained wee_alloc allocator #546

Description

@solidsnakedev

Dependabot alert #7 (GHSA-rc23-xxgq-x27g) flags wee_alloc as unmaintained, with open memory leak issues and no patched version. packages/aiken-uplc/rust/src/lib.rs installs it as the global allocator, so it is compiled into the WASM that @evolution-sdk/aiken-uplc publishes.

Remove the #[global_allocator] static from lib.rs and the wee_alloc entry from rust/Cargo.toml, so the build uses the default Rust allocator for wasm32. Then run pnpm build:wasm to regenerate the committed WASM in src/bundler and src/web.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions