Skip to content

fix ASE loader crash when *MATERIAL_COUNT or *NUMSUBMTLS is not specified or is 0 - #5559

Merged
kimkulling merged 3 commits into
assimp:masterfrom
Garux:asecrash
May 8, 2024
Merged

kimkulling merged 3 commits into
assimp:masterfrom
Garux:asecrash

Conversation

@Garux

@Garux Garux commented Apr 30, 2024

Copy link
Copy Markdown
Contributor

code was doing vector[0u - 1] dereference in this case
example model

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@kimkulling
kimkulling merged commit 47dbaba into assimp:master May 8, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

@kimkulling kimkulling self-assigned this May 8, 2024
@kimkulling kimkulling added Bug Global flag to mark a deviation from expected behaviour ASE Bugs related to the ASE format. labels May 8, 2024
kimkulling added a commit that referenced this pull request Jul 1, 2026
…fied or is 0 (#5559)

code was doing vector[0u - 1] dereference in this case

Co-authored-by: Kim Kulling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ASE Bugs related to the ASE format. Bug Global flag to mark a deviation from expected behaviour

Projects

Development

Successfully merging this pull request may close these issues.

2 participants