[This might be a duplicate of Issue1110 but I found no way to add a comment]
I'm using the latest Gpg4win featuring GPGOL 1.1.1. Outlook is from Office 2007
Professional, Operatingsystem is Windows XP.
Issue:
Attachments encrypted using GPGOL 1.1.1 are broken.
Steps to reproduce:
- Create a file test.txt, add line "testcontent", use 7zip to create a
test.txt.zip file.
- Use Outlook to send this file to yourself using GPGOL.
- Decrypt and save attachment
- The original file and the received attachment are different.
Additional Details:
Original file dump:
PK^C^D
^@^@^@^@^@!<A1><ED><^D<D0>/
<90>^K^@^@^@^K^@^@^@^H^@^@^@test.txttestcontentPK^A^B^T^@
^@^@^@^@^@!<A1><ED><^D<D0>/<90>^K^@^@^@^K^@^@^@^H^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@test.txtPK^E^F^@^@^@^@^A^@^A^@6^@^@^@1^@^@^@^@^@
Decrypted file dump:
PK^CPK^C^D
^@^@^@^@^@!<A1><ED><^D<D0>/
<90>^K^@^@^@^K^@^@^@^H^@^@^@test.txttestcontentPK^A^B^T^@
^@^@^@^@^@!<A1><ED><^D<D0>/<90>^K^@^@^@^K^@^@^@^H^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@test.txtPK^E^F^@^@^@^@^A^@^A^@6^@^@^@1^@^@^@^@^@
Additional characters are added to the first line. In another test using a 3 MB
file other characters had been added close to the end of the file (at byte
position -780).
In both cases 3 bytes. Looks like it just repeated these bytes:
Example from above:
Original : PK^C ^D Decrypted: PK^CPK^C^D "PK^C" is repeated
Other test with 3 MB zip-file:
Original : PK^A^B^T^@^T ^@^@^@^H Decrypted: PK^A^B^T^@^T^T^@^T^@^@^@^H "^T^@^T" is repeated
More observations:
- Attachments decrypted using Linux/mutt/gnupg are broken too (this is the
reason why I believe the encryption is broken, rather than the decryption!).
- Outlook 2007 Prof on Windows 7 crashes on receiving these attachments (at
least once), on XP it doesn't.
- The attachment from the email in my sent folder is broken, too.
- Non-binary files don't seem to be affected (10k ascii public key file)
- Sending multiple attachments using the same file affects each the same way
- Other files (1 MB Word-file, 600k zip-file) weren't affected (I see no
pattern in what is and what is not affected).
Cheers,
Christoph