Skip to content

Validate Duration and Timestamp bounds on CEL message construction. - #1435

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1010948097
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1010948097

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Validate Duration and Timestamp bounds on CEL message construction.

CEL specification PR #501 requires constructing google.protobuf.Duration or google.protobuf.Timestamp message literals with out-of-range seconds or nanos fields (or mismatched signs on Duration) to fail at evaluation time, while preserving unvalidated field selection on existing protobuf messages.

Validate built Duration and Timestamp protobuf instances during CEL struct literal creation in both value-provider and legacy descriptor-provider runtimes, update the interpreter wrapper baseline, and remove _TESTS_TO_SKIP_SPEC_IMPORT now that all duration and wrapper conformance tests pass.

CEL specification PR #501 requires constructing `google.protobuf.Duration` or `google.protobuf.Timestamp` message literals with out-of-range `seconds` or `nanos` fields (or mismatched signs on `Duration`) to fail at evaluation time, while preserving unvalidated field selection on existing protobuf messages.

Validate built `Duration` and `Timestamp` protobuf instances during CEL struct literal creation in both value-provider and legacy descriptor-provider runtimes, update the interpreter wrapper baseline, and remove `_TESTS_TO_SKIP_SPEC_IMPORT` now that all duration and wrapper conformance tests pass.

PiperOrigin-RevId: 1010948097
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