Skip to content

Crash when seeking with a negative value #386

@9AZX

Description

@9AZX

Description

Hi again !
We have some crashes on iOS reported by Crashlytics. The stack trace points to SoLoud::WavInstance::getAudio, line 55, but at first glance I don’t see anything that could cause it. I asked Claude, and it suggested this could be an out-of-bounds issue with mParent->mData when mOffset exceeds mSampleCount, causing the unsigned subtraction to underflow. But I’m not entirely convinced, what do you think?

Steps To Reproduce

We don't have a reproduction scenario unfortunately :(

Expected Behavior

No crash :P

Screenshots

Image

Additional Context

We only see it on iOS for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions