Skip to content

Add limits to what length values DerReader supports#6164

Merged
swankjesse merged 3 commits into
square:masterfrom
cketti:der_length
Jul 3, 2020
Merged

Add limits to what length values DerReader supports#6164
swankjesse merged 3 commits into
square:masterfrom
cketti:der_length

Conversation

@cketti
Copy link
Copy Markdown
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.

Comment thread okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
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
Copy Markdown
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