Issue 5060 - Bad fonts can make OO 1.0 crash
Summary: Bad fonts can make OO 1.0 crash
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: philipp.lohmann
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-20 14:48 UTC by Unknown
Modified: 2004-11-25 17:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
PostScript Type 1 font program data (161.71 KB, application/octet-stream)
2002-07-03 21:42 UTC, Unknown
no flags Details
ASCII font metrics (84.19 KB, text/plain)
2002-07-03 21:43 UTC, Unknown
no flags Details
OpenOffice pspfontcache before crash (23.00 KB, text/plain)
2002-07-03 21:46 UTC, Unknown
no flags Details
pspfontcache (23.15 KB, text/plain)
2002-07-03 21:47 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-20 14:48:04 UTC
I've  added some fonts to the fontpath of my X11 server. Amongst them there
are some bad fonts. If I open an existing Excel document (from M$ excel 2000)
OO stores some information about one or more of these fonts in the file
~/OpenOffice.org1.0/user/psprint/pspfontcache. Next time I try to open a
whatever document OO crashes. The solution is to remove these bad fonts :) and
the cache file.
Comment 1 thorsten.martens 2002-07-03 10:38:57 UTC
TM->US: Just another font-problem. Please have a look, thanks !
Comment 2 ulf.stroehler 2002-07-03 11:32:47 UTC
"Some bad fonts" is not a qualified description.
If they are really bad, then delete them!
If they do not meet the TrueType specification, then which parts of
the specification are violated by the font? 

At least pls. attach the fonts to this bug. Thank you.

If you had mentioned at least the font names, we could have determined
if your problem was perhaps already fixed and available with the next
OOo release.
Comment 3 Unknown 2002-07-03 21:42:36 UTC
Created attachment 2137 [details]
PostScript Type 1 font program data
Comment 4 Unknown 2002-07-03 21:43:33 UTC
Created attachment 2138 [details]
ASCII font metrics
Comment 5 Unknown 2002-07-03 21:46:39 UTC
Created attachment 2139 [details]
OpenOffice pspfontcache before crash
Comment 6 Unknown 2002-07-03 21:47:30 UTC
Created attachment 2140 [details]
pspfontcache
Comment 7 Unknown 2002-07-03 21:50:35 UTC
;-) If I had known they were bad be sure they would have been zapped 
immediately. However I think that OO should not crash for such a reason.

> If they do not meet the TrueType specification, then which parts of
> the specification are violated by the font?
>
> At least pls. attach the fonts to this bug. Thank you.
>
> If you had mentioned at least the font names, we could have determined
> if your problem was perhaps already fixed and available with the next
> OOo release.

I agree. My report was  too much "generic", but I had no time to
investigate the bug further. I sent the report (may be 40 days ago) in
the hope it would have been useful anyway. I thought (maybe naively)
that there should  be a way to check the font file before storing a
reference to it in the font pspfontcache file. I.e. a way to keep "bad
fonts" out.
Today I took a deeper look at the problem. The bad fonts are enclosed
togetherwith the pspfontcache before I open the xls file from Office
2000 and after the file is closed (open/close is enough).  The
pspfontcache.after causes the OO crash. So to reproduce the problem:

- put the fonts in a directory in the font path of your X server.
- open an xls file from Excel 2000 with OO calc  
- close OO calc.
- reopen OO calc and it will crash.
Comment 8 hdu@apache.org 2002-07-29 12:43:18 UTC
HDU->PL problem with font discovery 
Comment 9 philipp.lohmann 2002-08-29 08:00:40 UTC
I cannot reproduce the crash with the attached font, neither in
current nor in Ooo 1.0.1. However since Ooo 1.0.1 is the current
release: could you confirm, that the bug still occurs ? There was a
bug involving pspfontcache that was fixed with 1.0.1 though that was
not a crash. Also other changes were made in that area.
Comment 10 Unknown 2002-09-06 09:25:37 UTC
I tried to reproduce this bug using Oo 1.0.1 The problem does not
arise anymore. I noticed that the defective arial.pfb font is no more
included in the pspfontcache file.
Thanks,
-gp
Comment 11 philipp.lohmann 2002-09-06 09:30:18 UTC
It would seem that the problem is solved with the printing fixes in
1.0.1, therefore i'll close this issue.
Comment 12 philipp.lohmann 2004-11-25 17:38:13 UTC
closing