register/purge use uninitialised variable

Bug #34454 reported by Paul Sladen
6
Affects Status Importance Assigned to Milestone
defoma (Debian)
Fix Released
Unknown
defoma (Ubuntu)
New
Low
Unassigned

Bug Description

  $ sudo /usr/bin/defoma-font purge-all /etc/defoma/hints/ttf-ubuntu-title.hints
  Use of uninitialized value in print at /var/lib/defoma/scripts/gs.defoma line 108.
  [repeated ~20 times]

The same occurs for:

  $ sudo /usr/bin/defoma-font reregister-all /etc/defoma/hints/ttf-ubuntu-title.hints

    106 if ($c eq 'truetype-cjk') {
    107 # FIXME: need to support the sub font id for the collection.
    108 print FFFF '/', $Id->{0}->[$i], ' << /FileType /TrueType /Path (', $f, ') /SubfontID ', '0', ' /CSI [(', $h[6], ') ', $hh{$h[6]}, "] >> ;\n";
    109 }

File 'FFFF' in this case is:

  /var/lib/defoma/gs.d/dirs/fonts/cidfmap

Attempting to add any debugging code such as 'print FFFF ...' or 'print STDERR ...' causes the warning to disappear.

Changed in defoma:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.