🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #907

bzrto dumps core generating MF output

#907
From: peter c halverson
Date: Tue, 13 Oct 1992 16:22
34 lines
1352 bytes
CONFIGURATION

GNU fontutils version 0.5
SparcStation 2
SunOS 4.1.2
OpenWindows 3.0, olwm

DESCRIPTION

Invoking bzrto with the following options
  
   % bzrto -verbose -metafont gbbb30b -output=gbbb30B

dumps core with a segmentation violation when writing the Metafont
epilogue.  The failure occurs in the function "output_ligtable" while
writing ligature information, caused by a pointer dereference that occurs
before the data is tested for validity (in a local variable
initialization).

SUGGESTED FIX

Making the following change to bzrto/metafont.c corrects the problem:

bzrto/metafont.c
415c415
<       tfm_char_type *c;
---
>       tfm_char_type *c = CHAR_TFM_INFO (*(chars[code]));
422,424c422
< 
<       c = CHAR_TFM_INFO (*(chars[code]));
< 
---
>       
Technical Details
Message-ID: <9210131622.AA18852@sol.crd.Ge.Com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!sol.CRd.ge.COM!halvers

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!sol.CRd.ge.COM!halvers
From: halvers@sol.CRd.ge.COM (peter c halverson)
Subject: bzrto dumps core generating MF output
Message-ID: <9210131622.AA18852@sol.crd.Ge.Com>
Sender: gnulists@ai.mit.edu
Reply-To: Pete Halverson <halverson@crd.ge.com>
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 13 Oct 1992 16:22:43 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 36