JDK-6229389 : Type1 font with seac instructions may cause crash
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-02-15
  • Updated: 2010-04-04
  • Resolved: 2005-04-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
1.4.2_09Fixed 6 b33Fixed
Related Reports
Relates :  
Relates :  
Type1 fonts, such as Computer Modern Unicode fonts (http://canopus.iacp.dvo.ru/~panov/cm-unicode/), may cause crash.

Steps to reproduce:
  1. Install  Computer Modern Unicode fonts
      (cm-unicode package is shiped with Suse 9.2)
  2. Run Font2DTest
  3. Select any of CMU fonts in the font list
###@###.### 2005-2-15 15:55:21 GMT

EVALUATION Main reason of the crash is incorrect AdobeStandardEncoding to Unicode mapping for quote chars. As a result of mistake in the mapping "quotesingle" was defined as consiting of "space" and "quotesingle" after processing seac instruction. Consequently, t5his end up with infinitive loop and memory corruption. According to Adobe Standard Encoding to Unicode v2.0 (http://www.unicode.org/Public/MAPPINGS/VENDORS/ADOBE/stdenc.txt) 0x27 from AdobeStandardEncoding should map to 0x2019 ("quoteright") and not to 0x27 ("quotesingle"). Proposed fix also prevents infinitive loops in cases like this (they could happen in malformed fonts). ###@###.### 2005-2-15 16:49:44 GMT