diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-12-11 23:07:16 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2022-12-12 15:14:39 +0100 |
commit | a7ea4824783846b0ff9eea8d5409f049c7abdf03 (patch) | |
tree | 00d4874ab27a78abbee00aa4654a2e55ccf8982f /.gitattributes | |
parent | 04d3c5ba245929530b8e2666509fa95df82c77bc (diff) |
openpgp: Fix how text signatures are hashed.
- When hashing text signatures in which `cr`, `lf`, and `crlf` are
normalized to `crlf`, if a `crlf` was split across two hash
updates, two `crlf`s would be hashed (one for the final `cr` in
the first update, and one for the leading `lf` in the second
update) instead of just one.
- Fix it.
- Fixes #960.
Diffstat (limited to '.gitattributes')
-rw-r--r-- | .gitattributes | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index 6313b56c..0fd8d54d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,6 @@ * text=auto eol=lf + +# Don't do line ending conversions on these files: these are reference data +# and we really want them as-is. +openpgp/tests/data/messages/crlf-straddles-chunks.txt binary +openpgp/tests/data/messages/text-signature-notation-has-lf.txt binary |