Displaying an Odia reph with an OpenType font leads to application crashing

Originator:lianghai
Number:rdar://33151387 Date Originated:6 July 2017
Status:Open Resolved:No
Product:macOS + SDK Product Version:10.12.5 (16F73)
Classification:Crash Reproducible:Always
 
Summary:
When displaying Odia (Oriya) text with an OpenType (instead of AAT) font, the existence of a reph (either introduced by typing or toor changing the font from and AAT one to an OpenType one) leads to application crashing.

Reph: The above base mark formed by the sequence <U+0B30 ORIYA LETTER RA, U+0B4D ORIYA SIGN VIRAMA> when preceding another consonant.

Steps to Reproduce:
- Install the "NotoSansOriya-Regular.ttf" font.
- Open the "test case.rtf" file in TextEdit.
- Change the font of the Odia text in the first line from "Oriya Sangam MN" (system AAT font) to "Noto Sans Oriya" (OpenType font), or remove the space between the two pieces of Odia text from the third line (already set to "Noto Sans Oriya").

Expected Results:
The edits should happen normally.

Observed Results:
TextEdit crashes.

Version:
10.12.5 (16F73)

Notes:
"NotoSansOriya-Regular.ttf" is a typical OpenType Odia font from: http://google.com/get/noto/

Configuration:
Change the font of the second line (an additional character follows the reph-ed Indic cluster) to "Noto Sans Oriya" doesn't make TextEdit crash.

Comments

The content of "test case.rtf" is:

ର୍କ (Oriya Sangam MN)

ର୍କକ (Oriya Sangam MN)

ର୍ କ (Noto Sans Oriya)


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!