summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2001-11-22 13:13:37 +0000
committerpetef <petef@FreeBSD.org>2001-11-22 13:13:37 +0000
commit2ce6dcdca3c8b07b95584df7dc60c733e814e044 (patch)
treef7fd1138bb393b2a07050283d8168bedf6c0803b /security
parent918b81fcb01997cc2336649cdcf618e26ffcdac7 (diff)
downloadFreeBSD-ports-2ce6dcdca3c8b07b95584df7dc60c733e814e044.zip
FreeBSD-ports-2ce6dcdca3c8b07b95584df7dc60c733e814e044.tar.gz
Make pgp5 interpret the escape character as part of a plain text message
(ie: an iso-2022-jp encoded Japanese email) PR: 14225 Submitted by: knu Approved by: maintainer timeout
Diffstat (limited to 'security')
-rw-r--r--security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c b/security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c
new file mode 100644
index 0000000..7c6bd2a
--- /dev/null
+++ b/security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c
@@ -0,0 +1,23 @@
+$FreeBSD$
+
+--- lib/pgp/utils/pgpFileType.c~ Sun Sep 26 15:23:48 1999
++++ lib/pgp/utils/pgpFileType.c Sun Sep 26 15:28:22 1999
+@@ -171,7 +171,7 @@
+ * 24 CN cancel (can) ILLEGAL
+ * 25 EM end of medium (em) ILLEGAL
+ * 26 SB substitute (sub) legal (CP/M & MS-DOS EOF)
+- * 27 EC escape (esc) ILLEGAL
++ * 27 EC escape (esc) legal
+ * 28 FS file separator (is4) ILLEGAL
+ * 29 GS group separator (is3) ILLEGAL
+ * 30 RS record separator (is2) ILLEGAL
+@@ -199,7 +199,7 @@
+
+ do {
+ c = *buf++;
+- if (c < ' ' && (c < '\a' || c > '\r') && c != 26)
++ if (c < ' ' && (c < '\a' || c > '\r') && c != 26 && c != 27)
+ return 1; /* Illegal control char */
+ if ((c & 0x80) && highlimit-- == 0)
+ return 1; /* Too many 8th bits set */
+
OpenPOWER on IntegriCloud