Skip to content

Fix buffer overflow in FBX::Util::DecodeBase64() - #5322

Merged
kimkulling merged 2 commits into
assimp:masterfrom
ttxine:fix-fbx-utils-buffer-overflow
Nov 29, 2023
Merged

kimkulling merged 2 commits into
assimp:masterfrom
ttxine:fix-fbx-utils-buffer-overflow

Conversation

@ttxine

@ttxine ttxine commented Nov 13, 2023

Copy link
Copy Markdown
Contributor

FBX::Util::DecodeBase64() has maxOutLength parameter, but doesn't use it to check bounds when writing to out. This may result in a buffer overflow.

Add bounds check in FBX::Util::DecodeBase64().

@ttxine
ttxine marked this pull request as ready for review November 13, 2023 08:42

@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 f701d70 into assimp:master Nov 29, 2023
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

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