Skip to content

glTF: Use safe methods to get data from dictionaries with get_additional_data#117947

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Togira123:fix-unsafe-access-to-dict
Apr 1, 2026
Merged

glTF: Use safe methods to get data from dictionaries with get_additional_data#117947
Repiteo merged 1 commit intogodotengine:masterfrom
Togira123:fix-unsafe-access-to-dict

Conversation

@Togira123
Copy link
Copy Markdown
Contributor

Similar to #111684. The get_additional_data properties directly use the [] operator, even though it is allowed to pass keys that are not in the dictionary. This would then incorrectly result in the Bug: Dictionary::operator[] used when there was no value for the given key, please report. error message.

@Togira123 Togira123 requested a review from a team as a code owner March 28, 2026 22:11
@Nintorch Nintorch added this to the 4.x milestone Mar 29, 2026
@Repiteo Repiteo modified the milestones: 4.x, 4.7 Apr 1, 2026
@Repiteo Repiteo merged commit 01006b8 into godotengine:master Apr 1, 2026
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Apr 1, 2026

Thanks!

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.

5 participants