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

[Crypto] Fix generate_random_bytes for large chunks #81884

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Sep 18, 2023

Properly handle mbedtls errors, ensure we don't ask more bytes than allowed for each iteration.

@Faless Faless added bug topic:core cherrypick:4.0 cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Sep 18, 2023
@Faless Faless added this to the 4.2 milestone Sep 18, 2023
@Faless Faless requested a review from a team as a code owner September 18, 2023 22:25
Copy link
Member

@adamscott adamscott left a comment

Choose a reason for hiding this comment

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

Seems fine to me.

@akien-mga akien-mga changed the title [Crypto] Fix generate_random_bytes for large chunks [Crypto] Fix generate_random_bytes for large chunks Sep 19, 2023
@akien-mga
Copy link
Member

As discussed on chat, would be worth adding a comment in the code.

Properly handle mbedtls errors, ensure we don't ask more bytes than
allowed for each iteration.
@akien-mga akien-mga merged commit 3514053 into godotengine:master Sep 25, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Faless Faless deleted the crypto/random_in_chunks branch September 26, 2023 12:18
@akien-mga
Copy link
Member

Cherry-picked for 4.1.2.

@akien-mga akien-mga removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Oct 3, 2023
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.

None yet

4 participants