Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 1999 17:25:38 +0900
From:      Akinori MUSHA aka knu <knu@idaemons.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14225: Patches for security/pgp5
Message-ID:  <14334.64514.338251.26482Z@archon.my.domain>

next in thread | raw e-mail | index | archive | help

>Number:         14225
>Category:       ports
>Synopsis:       Patches for security/pgp5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct  9 01:30:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Akinori MUSHA aka knu
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
A.I.D.
>Environment:

	FreeBSD 3.3-STABLE + ports-current

>Description:

	Patches for security/pgp5.

	The first one is a fix for a silly typo. I wonder why it 
	didn't cause any errors/warnings during compilation.

	The second one makes pgp5 take texts which include escape 
	characters (such as iso-2022-jp encoded Japanese mails) 
	as plain texts.

>How-To-Repeat:

>Fix:
	
--- lib/pgp/keydb/pgpPrefUnix.c~	Mon Aug 11 09:05:32 1997
+++ lib/pgp/keydb/pgpPrefUnix.c	Sun Sep 26 15:31:52 1999
@@ -183,7 +183,7 @@
 				*/
 				if((inf = fopen(fn, "r"))) {
 					name_exists = TRUE;
-					fclose(inf):
+					fclose(inf);
 				}
 				/*If we haven't hit anything, either this thing doesn't
 				 *exist, or it exists and isn't a directory and we don't

--- 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 */

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14334.64514.338251.26482Z>