Skip to content

Fix invalid read of uint from uvwsrc - #5282

Merged
kimkulling merged 3 commits into
assimp:masterfrom
JulianKnodt:uvwsrc_read
Nov 14, 2023
Merged

kimkulling merged 3 commits into
assimp:masterfrom
JulianKnodt:uvwsrc_read

Conversation

@JulianKnodt

Copy link
Copy Markdown
Contributor

Previously was reading a uint, which always failed. Since the output was never checked, this seemed to work, and works fine for most models since they only use UV channel 0.

Previously was reading a uint, which always failed. Since the output was never checked, this
seemed to work, and works fine for most models since they only use UV channel 0.

@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, is there a model to test this?

@JulianKnodt

Copy link
Copy Markdown
Contributor Author

Let me find one, I think I cannot release the one I've been testing with

@JulianKnodt

Copy link
Copy Markdown
Contributor Author

image

sphere_two_uv.zip

I had to zip it because github apparently doesn't support just uploading raw glb files?

@kimkulling
kimkulling merged commit 9efbbe0 into assimp:master Nov 14, 2023
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot dor your contribution.

@JulianKnodt
JulianKnodt deleted the uvwsrc_read branch November 14, 2023 17:44
@JulianKnodt

Copy link
Copy Markdown
Contributor Author

@kimkulling out of curiosity, do you manually verify these changes yourself? Is there automated testing within Assimp?

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants