Issue 125359 - PDF Export crashes for Source Han Sans / Noto CJK fonts
Summary: PDF Export crashes for Source Han Sans / Noto CJK fonts
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:
Keywords: crash
Depends on:
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

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:

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

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 :

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:

The same patch has been vetted and applied as a hot-fix in LibreOffice at .

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.

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.