Subject: bin/28851: openssl ca -h segfaults
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <mlelstv@serpens.de>
List: netbsd-bugs
Date: 01/03/2005 21:12:00
>Number: 28851
>Category: bin
>Synopsis: openssl ca -h segfaults
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 03 21:12:00 +0000 2005
>Originator: Michael van Elst
>Release: NetBSD 2.0
>Organization:
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."
>Environment:
System: NetBSD pepew 2.0 NetBSD 2.0 (PEPEW) #14: Sun Dec 26 08:50:29 CET 2004 src@pepew:/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
>Description:
Run the command:
openssl ca -h
and watch it segfault after printing out the usage message.
>How-To-Repeat:
See above
>Fix:
--- crypto/dist/openssl/apps/apps.c.orig 2005-01-03 22:06:56.000000000 +0100
+++ crypto/dist/openssl/apps/apps.c 2005-01-03 22:06:50.000000000 +0100
@@ -1970,6 +1970,6 @@
void free_index(CA_DB *db)
{
- TXT_DB_free(db->db);
+ if (db) TXT_DB_free(db->db);
OPENSSL_free(db);
}
>Unformatted: