[exim-dev] [Bug 2295] Invalid DKIM signatures (pdkim_headcat…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Old-Topics: [exim-dev] [Bug 2295] New: Invalid DKIM signatures (due to header hash miscomputed)
Subject: [exim-dev] [Bug 2295] Invalid DKIM signatures (pdkim_headcat obliterating near-EOL significant characters)
https://bugs.exim.org/show_bug.cgi?id=2295

--- Comment #7 from Guillaume Outters <guillaume-exim@???> ---
Created attachment 1098
--> https://bugs.exim.org/attachment.cgi?id=1098&action=edit
"Unit test" of pdkim_headcat

Attached is sort of a unit test of pdkim_headcat, showing more generally how
the last DKIM-Signature semicolon disappears when falling in last position of a
full 78-character line.

The attachment has to be placed in a already built tree, in
build-<OS>-<machine>/pdkim/ (it should be able to find a ../os.h).
Then run the script (well adapt it to run: this is a quickly hacked shell
script, with my glib-containing /usr/local hardcoded).
It will:
- create a test_pdkim_headcat.c, that includes or minimally redefines every
function needed by pdkim_headcat
- compile it
- run it

It will run 4 tests:
1. closing semicolon in forelast position of last line
2. closing semicolon in last position of last line (well, should be)
3. closing semicolon in first position of (new) last line
4. closing semicolon in second position of last line

Test 2. shows (at least with my 2.52.2 glib) the bug, that is, the closing
semicolon has disappeared…

--
You are receiving this mail because:
You are on the CC list for the bug.