Description

Upon viewing certain (possibly corrupt) subtitles (e.g. the SpoonSubs? v1 release of Hidamari Sketch x365 episode 3 near ), Perian crashes QuickTime by giving an alert box remarking about a "[NSCFString characterAtIndex:] Range or index out of bounds" error. At the very least, Perian should probably try to silently drop the subtitles instead of throwing an exception.

Viewing in VLC does not crash, and suggests it may have something to do with an accented e in the title "I like to top it off with condensed milk or whipped crème", especially as the è bears a different font in VLC compared to the rest of the characters.

The ASS file is attached, and the crash may be related to font-switching within the subtitle, as the particular line does, in fact, reference "{\fnChinacat}è{\fn}", where chinacat.ttf is one of the attached font files within the MKV file. Is it possible that the length of the subtitle is not the same length as the string, due to not properly handling the font-change within the same line?