Skip to content

Possible memory leak in some SIMD accelerated code used in NBT parsing #37

Description

@ReCore-sys

Describe the Bug

There is the possibility of a memory leak in the code and a likely culprit is the raw SIMD code in https://github.com/temper-mc/temper/blob/master/src/base/general_purpose/src/simd/arrays.rs. It is one of the few places unsafe code is used and could easily be replaced with a safe version. The mulitversion crate could be a good fit here.

To Reproduce

No response

Expected Behaviour

No response

Screenshots / Videos

No response

Temper Version

No response

Rust Version

No response

Server Logs

No response

Additional Context

No response

Is there an existing issue for this?

  • I have searched current existing issues before creating this.
  • I checked all the boxes without reading them
  • I have provided all necessary and relevant details, including logs, reproduction steps, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    TBD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions