Bug 89 - nm long name fix is big time broke
Summary: nm long name fix is big time broke
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Core Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1994-12-28 03:50 UTC by Peter Dufault
Modified: 2007-09-13 13:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Dufault 1994-12-28 03:50:01 UTC
The commited long name fix to nm trashes the heap

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".
How-To-Repeat: 
nm /usr/lib/libc.a