Skip Menu |
 

From krb5-bugs-incoming-bounces@PCH.mit.edu Thu Dec 22 15:41:05 2005
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP
id PAA01731; Thu, 22 Dec 2005 15:41:05 -0500 (EST)
Received: from pch.mit.edu (pch.mit.edu [127.0.0.1])
by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id jBMKeOpx005092
for <krb5-send-pr@krbdev.mit.edu>; Thu, 22 Dec 2005 15:40:24 -0500
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
[18.7.21.83])
by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id jBKD8Ipx026084
for <krb5-bugs-incoming@PCH.mit.edu>; Tue, 20 Dec 2005 08:08:32 -0500
Received: from sikandar.blr.novell.com (lan-202-144-95-244.maa.sify.net
[202.144.95.244] (may be forged))
by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id
jBKD8LHv021334
for <krb5-bugs@mit.edu>; Tue, 20 Dec 2005 08:08:26 -0500 (EST)
Received: by sikandar.blr.novell.com (Postfix, from userid 500)
id 053FD8F40B; Tue, 20 Dec 2005 18:39:18 +0530 (IST)
To: krb5-bugs@mit.edu
Subject: kadmin.local is killed due to segmentation fault
From: srahul@novell.com
X-send-pr-version: 3.99
Message-Id: <20051220130918.053FD8F40B@sikandar.blr.novell.com>
Date: Tue, 20 Dec 2005 18:39:18 +0530 (IST)
X-Spam-Score: 5.094
X-Spam-Level: ***** (5.094)
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42
X-Mailman-Approved-At: Wed, 21 Dec 2005 18:07:23 -0500
X-BeenThere: krb5-bugs-incoming@mailman.mit.edu
X-Mailman-Version: 2.1.6
Precedence: list
Reply-To: srahul@novell.com
Sender: krb5-bugs-incoming-bounces@PCH.mit.edu
Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu


Show quoted text
>Submitter-Id: net
>Originator: S Rahul
>Organization:

Show quoted text
>Confidential: no
>Synopsis: kadmin.local is killed due to segmentation fault when principal name argument is missing.
>Severity: non-critical
>Priority: medium
>Category:
>Class: sw-bug
>Release: 1.4.3
>Environment:

System: Linux sikandar 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005 i686 i686 i386 GNU/Linux
Architecture: i686

Show quoted text
>Description:
kadmin.local is killed due to segmentation fault when principal name
argument is missing.
Show quoted text
>How-To-Repeat:
bash$ kdb5_util create -s
Loading random data
Initializing database 'REALM1.db' for realm 'REALM1',
master key name 'K/M@REALM1'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
bash$ kadmin.local
Authenticating as principal user1/admin@REALM1 with password.
kadmin.local: cpw -pw pass
Segmentation fault (core dumped)
Show quoted text
>Fix:
Apply the following patch:
--- /tmp/krb5-1.4.3/src/kadmin/cli/kadmin.c 2005-12-20 17:55:43.000000000 +0530
+++ src/kadmin/cli/kadmin.c 2005-12-20 18:00:49.000000000 +0530
@@ -628,6 +628,10 @@
}
goto usage;
}
+ if (*argv == NULL) {
+ fprintf(stderr, "change_password: missing principal name\n");
+ goto usage;
+ }
retval = kadmin_parse_name(*argv, &princ);
if (retval) {
com_err("change_password", retval, "while parsing principal name");
From: raeburn@mit.edu
Subject: SVN Commit
(kadmin_cpw): Don't crash if principal name is not given. Based on a
patch from S Rahul.
(extended_com_err_fn): If error code is zero, don't fetch an error message.

Commit By: raeburn



Revision: 18179
Changed Files:
U trunk/src/kadmin/cli/kadmin.c
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18179 from trunk

r18179@cathode-dark-space: raeburn | 2006-06-20 19:27:01 -0400
ticket: 3308
tags: pullup

(kadmin_cpw): Don't crash if principal name is not given. Based on a
patch from S Rahul.
(extended_com_err_fn): If error code is zero, don't fetch an error message.


Commit By: tlyu



Revision: 18213
Changed Files:
U branches/krb5-1-5/src/kadmin/cli/kadmin.c