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

Add limits to what length values DerReader supports #6164

Merged
merged 3 commits into from
Jul 3, 2020

Conversation

cketti
Copy link
Contributor

@cketti cketti commented Jul 2, 2020

With this change DerReader doesn't support reading values with a length greater than Long.MAX_VALUE. That shouldn't be a problem in practice.

cketti added 2 commits July 2, 2020 22:32
With this change DerReader doesn't support reading values with a length
greater than Long.MAX_VALUE. That shouldn't be a problem in practice.
}
}

@Test fun `decode length equal to Long MAX_VALUE`() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

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