Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

plumbing: object, Fix tag message decoding #1104

Closed
wants to merge 1 commit into from

Conversation

scjudd
Copy link
Contributor

@scjudd scjudd commented Apr 4, 2019

The Decode method was adding one too many newlines to the tag message, causing signature verification to fail. This is because in signed tags produced by git, there is a newline after the PGP signature block, resulting in messageAndSig having one extra (empty) []byte element. This caused t.Message to receive one extra newline.

The Decode method was adding one too many newlines to the tag message,
causing signature verification to fail. This is because in signed tags
produced by `git`, there is a newline after the PGP signature block,
resulting in `messageAndSig` having one extra (empty) `[]byte` element.
This caused `t.Message` to receive one extra newline.

Signed-off-by: Spencer Judd <[email protected]>
@scjudd scjudd force-pushed the bug/tag-decoding-newlines branch from 92b7efb to de42463 Compare April 4, 2019 09:05
@scjudd scjudd changed the title Fix tag message decoding plumbing: object, Fix tag message decoding Apr 4, 2019
@mcuadros
Copy link
Contributor

mcuadros commented Apr 7, 2019

Can you provide a test? Thanks!

@mcuadros
Copy link
Contributor

Included in #1118

@mcuadros mcuadros closed this Apr 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants