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

Simplify base64.cpp and fix 0 byte ending issue #883

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

Databean
Copy link
Member

@Databean Databean commented Feb 8, 2025

Uses EVP_EncodedLength to avoid a local implementation, and uses EVP_DecodeBase64 to handle a corner case around null bytes at the end of input data for base64 encoding.

Counterpart to https://android-review.googlesource.com/c/device/google/cuttlefish/+/3481535

Bug: b/395180112
Test: bazel test :utils_test

Uses `EVP_EncodedLength` to avoid a local implementation, and uses
`EVP_DecodeBase64` to handle a corner case around null bytes at the end
of input data for base64 encoding.

Counterpart to https://android-review.googlesource.com/c/device/google/cuttlefish/+/3481535

Bug: b/395180112
Test: bazel test :utils_test
@Databean
Copy link
Member Author

Databean commented Feb 8, 2025

Thanks for reviewing!

@Databean Databean enabled auto-merge February 8, 2025 00:56
@Databean Databean added this pull request to the merge queue Feb 8, 2025
Merged via the queue into google:main with commit 6f328cb Feb 8, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants