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 #901 - protobuf.encode<T>() be returned when union type comes. #903

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 11, 2023

There had been a bug that stopping encoding when union type comes.

It was a problem that vulnerable return statement being inserted about the object union type when compilation.

This PR fixes the bug, by not writing the vulnerable return statement.

There had been a bug that stopping encoding when union type comes. It was a problem that vulnerable `return` statement being inserted about the object union type when compilation.

This PR fixes the bug, by not writing the vulnerable `return` statement.
@samchon samchon added bug Something isn't working enhancement New feature or request labels Dec 11, 2023
@samchon samchon self-assigned this Dec 11, 2023
@samchon samchon changed the title Fix #901 - protobuf.encode<T>() stops when union type comes. Fix #901 - protobuf.encode<T>() be returned when union type comes. Dec 11, 2023
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

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

No problem on test program

@samchon samchon merged commit 9e53cfc into master Dec 11, 2023
3 checks passed
@samchon samchon deleted the features/encode branch December 11, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant