Apache OpenOffice (AOO) Bugzilla – Issue 18818
Crash in OOo impress auto-pilot
Last modified: 2004-01-30 15:26:03 UTC
Hi, In first step of OOo impress auto-pilot, choosing type from template will result in a crash when OOo was started locally. Faulty function is ExtendedFontStruct::HasUnicodeChar(). Even if you can't reproduce it, reading it exhausts a typo and that bug condition: mnRangeCount is -1 and call to getFontCodeRanges() yields 0. We exit with mnRangeCount left to 0. On next call to HasUnicodeChar() we skip this test and will crash later because mpCodeRanges[] was not initialized. BTW, isn't there a potential memory leak when we are (re)allocating memory when mnRangeCount yields -1 again? I don't think this can happen in real world though.
Created attachment 8879 [details] suggested fix
cp->hdu: i think that's yours, please have a look at it.
I cannot reproduce it here, but if none of a font's XLFD has a known encoding field, this could happen indeed. Thanks for catching this and for the patch. I'll apply it into CWS vcl7pp1r2. I'd still love to know which encoding wasn't recognized. Could you attach the results of the "xlsfonts" command?
Created attachment 9331 [details] xlsfont output
Probably the "sunolglyph-1" XLFDs are at fault. HDU->US: Please verify that it doesn't crash anymore in this situation in CWS vcl7pp1r2. (Call me so we can manipulate a fonts.dir such as to cause the original crash)
Couldn't reproduce either (nor with sunolglyph-1). Setting to Fixed/Verified anyway. Fix applied.
.
Closing Resolved/Verified issue. Fix will be in forthcoming OOo 1.1.1. @Submitter: pls. verify whether this fix solves your problem in forthcomming OOo 1.1.1 and feel free to reopen if the problem remains. Thanks.