NetBSD Problem Report #35519
From www@NetBSD.org Tue Jan 30 06:39:26 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 4B2C363BA98; Tue, 30 Jan 2007 06:39:26 +0000 (UTC)
Message-Id: <20070130063926.4B2C363BA98@narn.NetBSD.org>
Date: Tue, 30 Jan 2007 06:39:26 +0000 (UTC)
From: naoto@morishima.net
Reply-To: naoto@morishima.net
To: gnats-bugs@NetBSD.org
Subject: libgcrypt fails option handling
X-Send-Pr-Version: www-1.0
>Number: 35519
>Category: pkg
>Synopsis: libgcrypt fails option handling
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 30 06:40:00 +0000 2007
>Closed-Date: Tue Jan 30 06:54:04 +0000 2007
>Last-Modified: Tue Jan 30 06:55:00 +0000 2007
>Originator: Naoto Morishima
>Release: NetBSD 3.1-STABLE
>Organization:
NAIST
>Environment:
NetBSD XXX 3.1_STABLE NetBSD 3.1_STABLE (GENERIC 1.661.2.14/XXX 1.3) #0: Wed Nov 8 12:33:52 JST 2006 naoto@xxx:/usr/obj/sys/arch/i386/compile/XXX.MP i386
>Description:
"--no-secmem-warning" option on gpg2 does not seem to work well,
because libgcrypt fails its handling.
>How-To-Repeat:
invoke gpg2 which is not setuid'ed with option --no-secmem-warning without setuid,
and you will get message of "WARNING: using insecure memory!".
>Fix:
In libgcrypt-1.2.3/src/secmem.h, values for the macros GCRY_SECMEM_FLAG_NO_WARNING and GCRY_SECMEM_FLAG_SUSPEND_WARNING should be enclosed with parans as following:
--- libgcrypt-1.2.3/src/secmem.h.orig 2007-01-30 15:37:33.000000000 +0900
+++ libgcrypt-1.2.3/src/secmem.h 2007-01-30 15:37:40.000000000 +0900
@@ -32,7 +32,7 @@
int _gcry_private_is_secure (const void *p) GCC_ATTR_PURE;
/* Flags for _gcry_secmem_{set,get}_flags. */
-#define GCRY_SECMEM_FLAG_NO_WARNING 1 << 0
-#define GCRY_SECMEM_FLAG_SUSPEND_WARNING 1 << 1
+#define GCRY_SECMEM_FLAG_NO_WARNING (1 << 0)
+#define GCRY_SECMEM_FLAG_SUSPEND_WARNING (1 << 1)
#endif /* G10_SECMEM_H */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Tue, 30 Jan 2007 06:54:04 +0000
State-Changed-Why:
Committed, thanks!
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35519 CVS commit: pkgsrc/security/libgcrypt
Date: Tue, 30 Jan 2007 06:53:32 +0000 (UTC)
Module Name: pkgsrc
Committed By: wiz
Date: Tue Jan 30 06:53:32 UTC 2007
Modified Files:
pkgsrc/security/libgcrypt: Makefile distinfo
Added Files:
pkgsrc/security/libgcrypt/patches: patch-ah
Log Message:
Put macro argument in parentheses. From Naoto Morishima in PR 35519.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 pkgsrc/security/libgcrypt/Makefile
cvs rdiff -r1.18 -r1.19 pkgsrc/security/libgcrypt/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/security/libgcrypt/patches/patch-ah
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.