Issue 125359 - PDF Export crashes for Source Han Sans / Noto CJK fonts
Summary: PDF Export crashes for Source Han Sans / Noto CJK fonts
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Major with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2014-08-05 18:18 UTC by Audrey Tang
Modified: 2014-08-09 20:06 UTC (History)
1 user (show)

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


Attachments
Patch to cff.cxx (383 bytes, patch)
2014-08-05 18:18 UTC, Audrey Tang
no flags Details | Diff
GDB backtrace (10.53 KB, text/plain)
2014-08-05 18:58 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Audrey Tang 2014-08-05 18:18:46 UTC
Created attachment 83778 [details]
Patch to cff.cxx

Steps to reproduce:

1. Download and install Source Han Sans:
http://sourceforge.net/adobe/source-han-sans/wiki/Home/

Or: Noto T Chinese / Noto S Chinese / Noto Japanese from:

http://www.google.com/get/noto/

They are the same font.

2. New Writer or Impress file, type in any text, and apply the above font from font dropdown list.

3. Export to PDF.
--> Crashes.

The attached patch fixes this issue as explained by @kenlunde, main coordinator of Source Han Sans CJK at https://github.com/adobe-fonts/source-han-sans/issues/27#issuecomment-51055950 :

Source Han Sans (and thus Noto Sans CJK) include 19 FDArray elements. The maximum number of FDArray elements is 256. For testing fodder, please grab one or most fonts that are provided in the following CJK Type Blog article that @kenlunde published over two years ago: http://blogs.adobe.com/CCJKType/2012/05/all-unicode-cfr.html

The same patch has been vetted and applied as a hot-fix in LibreOffice at https://bugs.freedesktop.org/show_bug.cgi?id=81516#c14 .

As for copyright status of the patch, here is my standard disclaimer:

To the extent possible under law, I waive all copyright and related or neighboring rights to my past & future contributions to OpenOffice.

http://creativecommons.org/publicdomain/zero/1.0

Cheers,
Audrey
Comment 1 Ariel Constenla-Haile 2014-08-05 18:58:26 UTC
Created attachment 83779 [details]
GDB backtrace
Comment 2 Ariel Constenla-Haile 2014-08-05 18:59:20 UTC
Already reproducible with 3.3.