From dufault@hda.com  Wed Dec 28 03:49:02 1994
Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id DAA28382 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Dec 1994 03:49:00 -0800
Received: (dufault@localhost) by hda.com (8.6.9/8.3) id GAA18421; Wed, 28 Dec 1994 06:50:38 -0500
Message-Id: <199412281150.GAA18421@hda.com>
Date: Wed, 28 Dec 1994 06:50:38 -0500
From: Peter Dufault <dufault@hda.com>
Reply-To: dufault@hda.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: nm long name fix is big time broke
X-Send-Pr-Version: 3.2

>Number:         89
>Category:       bin
>Synopsis:       nm long name fix is big time broke
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    core
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 28 03:50:01 1994
>Closed-Date:    Wed Dec 28 03:50:01 1994
>Last-Modified:  Thu Sep 13 12:54:57 GMT 2007
>Originator:     Peter &
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267
++++ Formerly hd@world.std.com.  E-mail problems? Tell hdslip@iii.net
>Environment:

-current

>Description:

The commited long name fix to nm trashes the heap

>How-To-Repeat:

nm /usr/lib/libc.a

>Fix:
	
Change the "emalloc(sizeof(MAX_FNAME) + ..." to "emalloc(MAX_FNAME + ..." in nm.c
(sorry for the poor testing).

Alternatively, "show.c" in "~dufault" on freefall has "show_archive" with that
fix and one other minor fix (the first char of "ar_date" is getting NULLED out for
file names with exactly 16 characters); I tried to commit those fixes but can only
access "cvs" and not "ncvs".
>Release-Note:
>Audit-Trail:
>Unformatted:



