-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/x509: disallow negative path length #60706
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
base: master
Are you sure you want to change the base?
crypto/x509: disallow negative path length #60706
Conversation
This PR (HEAD: df1a4c5) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/502076 to see it. Tip: You can toggle comments from me using the |
Message from Mateusz Poliwczak: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Message from Gopher Robot: Patch Set 1: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
df1a4c5
to
746e0c7
Compare
This PR (HEAD: 746e0c7) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/502076. Important tips:
|
Message from Mateusz Poliwczak: Patch Set 2: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-02-19T19:01:27Z","revision":"b0e5988b12d84950e15a231ede5e8de663df4dc2"} Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Message from Mateusz Poliwczak: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/502076. |
Change-Id: Id28ee390854d6c78fdd47f92910ba6c0dd79e820
746e0c7
to
ee162fb
Compare
This PR (HEAD: ee162fb) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/502076. Important tips:
|
pathLenConstraint is restricted to unsigned integers.
Also the -1 value of cert.MaxPathLength has a special
meaning, so we shouldn't allow unmarshaling -1.
BasicConstraints ::= SEQUENCE {
cA BOOLEAN DEFAULT FALSE,
pathLenConstraint INTEGER (0..MAX) OPTIONAL }