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 mask calculation for type with max fields #126

Merged
merged 2 commits into from
Apr 16, 2023

Conversation

agocke
Copy link
Collaborator

@agocke agocke commented Apr 16, 2023

If num fields == number of bits in mask, the calculation would overflow. This fix avoids the problem by using string manipulation.

@agocke agocke merged commit 26fa66b into serdedotnet:main Apr 16, 2023
@agocke agocke deleted the fix-max-size-bug branch April 16, 2023 18:12
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.

1 participant