Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35443944
D351.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
D351.diff
View Options
Index: b/g10/armor.c
===================================================================
--- b/g10/armor.c
+++ b/g10/armor.c
@@ -796,6 +796,24 @@
}
}
+ /* Occasionally a bug MTA will leave the = escaped as
+ =3D. If the 4 characters following that are valid
+ Radix64 characters and they are following by a new
+ line, assume that this is the case and skip the
+ 3D. */
+ if (afx->buffer_pos + 6 < afx->buffer_len
+ && afx->buffer[afx->buffer_pos + 0] == '3'
+ && afx->buffer[afx->buffer_pos + 1] == 'D'
+ && asctobin[afx->buffer[afx->buffer_pos + 2]] != 255
+ && asctobin[afx->buffer[afx->buffer_pos + 3]] != 255
+ && asctobin[afx->buffer[afx->buffer_pos + 4]] != 255
+ && asctobin[afx->buffer[afx->buffer_pos + 5]] != 255
+ && afx->buffer[afx->buffer_pos + 6] == '\n')
+ {
+ afx->buffer_pos += 2;
+ afx->qp_detected = 1;
+ }
+
if (!n)
onlypad = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 7, 2:25 PM (8 h, 32 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
20/37/d91bc65db0b16535367d7e662bc8
Attached To
D351: 776_0001-gpg-Make-ASCII-armor-decoding-more-robust-to-encodin.patch
Event Timeline
Log In to Comment