NetBSD Problem Report #45765
From dieter.r@pandora.be Sun Jan 1 12:18:42 2012
Return-Path: <dieter.r@pandora.be>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id CA9C363BB83
for <gnats-bugs@gnats.NetBSD.org>; Sun, 1 Jan 2012 12:18:41 +0000 (UTC)
Message-Id: <20120101121844.87B94C384F@simult.amelgem.be>
Date: Sun, 1 Jan 2012 13:18:27 +0100 (CET)
From: dieter.r@pandora.be
Reply-To: dieter.r@pandora.be
To: gnats-bugs@gnats.NetBSD.org
Subject: security/cy2-gssapi sefault
X-Send-Pr-Version: 3.95
>Number: 45765
>Category: pkg
>Synopsis: security/cy2-gssapi sefault
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: obache
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 01 12:20:00 +0000 2012
>Closed-Date: Mon Jan 02 03:27:30 +0000 2012
>Last-Modified: Mon Jan 02 03:30:02 +0000 2012
>Originator: dieter roelants
>Release: NetBSD 5.99.55
>Organization:
bsdusr.net
>Environment:
System: NetBSD simult.amelgem.be 5.99.55 NetBSD 5.99.55 (SIMULT) #64: Sun Sep 11 14:17:45 CEST 2011 dieter@simult.amelgem.be:/build/obj.amd64.current/sys/arch/amd64/compile/SIMULT amd64
Architecture: x86_64
Machine: amd64
>Description:
Using the gssapi cyrus sasl plugin causes a segmentation fault.
>How-To-Repeat:
Build databases/openldap-client with kerberos option enabled.
Use ldapsearch with -Y gssapi.
>Fix:
The following patch fixes it. (I also found it has been
applied upstream.)
$NetBSD$
--- plugins/gssapi.c.orig 2011-05-11 19:25:55.000000000 +0000
+++ plugins/gssapi.c
@@ -370,7 +370,7 @@ sasl_gss_encode(void *context, const str
}
if (output_token->value && output) {
- unsigned char * p = (unsigned char *) text->encode_buf;
+ unsigned char * p;
ret = _plug_buf_alloc(text->utils,
&(text->encode_buf),
@@ -384,6 +384,7 @@ sasl_gss_encode(void *context, const str
return ret;
}
+ p = (unsigned char *) text->encode_buf;
p[0] = (output_token->length>>24) & 0xFF;
p[1] = (output_token->length>>16) & 0xFF;
p[2] = (output_token->length>>8) & 0xFF;
>Release-Note:
>Audit-Trail:
From: dieter roelants <dieter.NetBSD@pandora.be>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/45765: security/cy2-gssapi sefault
Date: Sun, 1 Jan 2012 14:21:16 +0100
Oh, I failed to mention, that this patch should be added as
security/cyrus-sasl/patches/patch-plugins_gssapi.c
kind regards
dieter
Responsible-Changed-From-To: pkg-manager->obache
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Mon, 02 Jan 2012 03:08:15 +0000
Responsible-Changed-Why:
I'll take this.
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 02 Jan 2012 03:27:30 +0000
State-Changed-Why:
Applied the patch. Thank you!
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45765 CVS commit: pkgsrc/security
Date: Mon, 2 Jan 2012 03:25:57 +0000
Module Name: pkgsrc
Committed By: obache
Date: Mon Jan 2 03:25:57 UTC 2012
Modified Files:
pkgsrc/security/cy2-gssapi: Makefile
pkgsrc/security/cyrus-sasl: distinfo
Added Files:
pkgsrc/security/cyrus-sasl/patches: patch-plugins_gssapi.c
Log Message:
Fixes a segfault in gssapi.c, taken from upstream Git repo.
PR#45765.
Bump PKGREVISION of cy2-gssapi plugin package.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/security/cy2-gssapi/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/security/cyrus-sasl/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/security/cyrus-sasl/patches/patch-plugins_gssapi.c
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.