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

feat: add bigint input validation #938

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

8de2fdb0
Copy link
Contributor

@8de2fdb0 8de2fdb0 commented Oct 4, 2023

Input validation for too large int64 and uint64 values when using
the compiler option forceLong=bigint.

Input validation for too large int64 and uint64 values when using
the compiler option forceLong=bigint.
@8de2fdb0 8de2fdb0 force-pushed the feature/add-bigint-validation branch from 682c12f to 218ed41 Compare October 4, 2023 11:23
@8de2fdb0 8de2fdb0 changed the title feature: add bigint input validation feat: add bigint input validation Oct 4, 2023
@8de2fdb0 8de2fdb0 force-pushed the feature/add-bigint-validation branch from 91d4cbe to 2fc4459 Compare October 4, 2023 14:33
@stephenh
Copy link
Owner

stephenh commented Oct 5, 2023

Looks great @8de2fdb0 , thanks!

@stephenh stephenh merged commit 0f9b6b1 into stephenh:main Oct 5, 2023
6 checks passed
@8de2fdb0
Copy link
Contributor Author

8de2fdb0 commented Oct 5, 2023

Thanks for being so responsive, and ts-proto in generall.

I am a bit unsure if that was all, at least it catches all the BigInt types now if forceLong=bigint.

If I find any other occurrence of potential number overflows I will make a follow up MR.

stephenh pushed a commit that referenced this pull request Oct 5, 2023
# [1.160.0](v1.159.3...v1.160.0) (2023-10-05)

### Features

* add bigint input validation ([#938](#938)) ([0f9b6b1](0f9b6b1))
@stephenh
Copy link
Owner

stephenh commented Oct 5, 2023

🎉 This PR is included in version 1.160.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants