Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix byte packing (and buffer overrun) in godot_webxr_get_bounds_geometry() #73068

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Feb 11, 2023

While working on PR #72938, I noticed this bug in godot_webxr_get_bounds_geometry().

It's incorrectly byte packing the data to pass it from Javascript to C++, and will actually overrun the buffer by 4 bytes!

Unlike the referenced issue, this one would be good to get in for 4.0.

@dsnopek dsnopek added this to the 4.0 milestone Feb 11, 2023
@dsnopek dsnopek requested a review from a team as a code owner February 11, 2023 01:41
@akien-mga akien-mga merged commit 7725a1a into godotengine:master Feb 11, 2023
@akien-mga
Copy link
Member

Thanks!

@dsnopek dsnopek deleted the webxr-bounds-geometry-bug branch July 22, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants