You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EncodeToMemory produces "-----BEGIN foo-----\n-----END foo-----" (notice the single newline compared to the original input). The pem.Decode function mistakes the line starting with "\n-----END foo-----" for being a header line, and subsequently does not find an END marker for the block.
encoding/pem successfully decodes a message in the following program; but if the message is re-encoded, decoding fails:
Either the first Decode should fail, or the second Decode should succeed.
on commit 6551803
The text was updated successfully, but these errors were encountered: