United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6229389 Type1 font with seac instructions may cause crash
JDK-6229389 : Type1 font with seac instructions may cause crash

Details
Type:
Bug
Submit Date:
2005-02-15
Status:
Resolved
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2005-04-18
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
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

                                    

Comments
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
                                     
2005-02-15



Hardware and Software, Engineered to Work Together