encoding/pem: Decode method uses extensive CPU when providing large data #50116
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
As part of fuzz testing sigstore/sigstore#188 using oss-fuzz we ran into an issue where the
pem.Decode
is consuming extensive CPU and here is the test case for it https://github.com/sigstore/sigstore/files/7676542/clusterfuzz-testcase-minimized-FuzzUnmarshalCertificatesFromPEM-4710187355734016.zipWhat did you expect to see?
The
pem.Decode
finishing sooner than it consumes large amount of CPUWhat did you see instead?
It being slow
The text was updated successfully, but these errors were encountered: