Skip to content

[cpp] fixed Memory access out of bounds error caused by unhandled null return of RegionAttachment when loading default skin#3037

Open
driftboat wants to merge 1 commit intoEsotericSoftware:3.8from
driftboat:3.8
Open

[cpp] fixed Memory access out of bounds error caused by unhandled null return of RegionAttachment when loading default skin#3037
driftboat wants to merge 1 commit intoEsotericSoftware:3.8from
driftboat:3.8

Conversation

@driftboat
Copy link
Copy Markdown

@driftboat driftboat commented Mar 4, 2026

When the texture packer is set to ignore blank images and exports a binary animation with empty sprites,
during the loading of the default skin in the skeleton file, the RegionAttachment returns null,
but there is no error handling or early return,
so the parsing continues, leading to misalignment and corruption in subsequent reads.

…d, to prevent subsequent reading from causing a Memory access out of bounds error
@driftboat driftboat changed the title According to 4.2, return immediately if the default skin fails to loa… [cpp] fixed Memory access out of bounds error caused by unhandled null return of RegionAttachment when loading default skin Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant