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

Return errors when duration or timestamp overflow is detected #422

Merged
merged 4 commits into from
Mar 30, 2021
Merged

Return errors when duration or timestamp overflow is detected #422

merged 4 commits into from
Mar 30, 2021

Conversation

jcking
Copy link
Collaborator

@jcking jcking commented Mar 26, 2021

Duration evaluation, if arithmetic on duration or timestamp causes overflow return an error. Additionally this pull request enables the timestamp and duration conformance tests and implements the functionality in the conformance server.

Timestamp range is defined per google.protobuf.Timestamp to be the range 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.

@jcking
Copy link
Collaborator Author

jcking commented Mar 28, 2021

I believe I need to address time zones in overflow detection, so please hold till I can verify.

@TristonianJones
Copy link
Collaborator

/gcbrun

@TristonianJones TristonianJones self-requested a review March 29, 2021 16:43
server/server.go Outdated Show resolved Hide resolved
common/types/uint.go Outdated Show resolved Hide resolved
common/types/timestamp.go Show resolved Hide resolved
common/types/int.go Outdated Show resolved Hide resolved
common/types/overflow.go Outdated Show resolved Hide resolved
server/server.go Show resolved Hide resolved
common/types/overflow.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@TristonianJones TristonianJones left a comment

Choose a reason for hiding this comment

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

One last item to address.

common/types/overflow.go Outdated Show resolved Hide resolved
@jcking jcking merged commit 9289422 into google:master Mar 30, 2021
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