[Bug 49527] New: Printing font Chilanka crashes Notepad and Word

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jul 6 04:55:27 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49527

            Bug ID: 49527
           Summary: Printing font Chilanka crashes Notepad and Word
           Product: Wine
           Version: 5.12
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wineps.drv
          Assignee: wine-bugs at winehq.org
          Reporter: bernhardu at mailbox.org
      Distribution: ---

Created attachment 67657
  --> https://bugs.winehq.org/attachment.cgi?id=67657
Avoid crash in get_glyf_pos in wineps.drv with font Chilanka.

Function get_glyf_pos accesses unconditionally the memory pointed to by
".data".
Unfortunately with this font we end up here with a null pointer.

123  *start = GET_BE_WORD(((WORD*)t42->tables[t42->loca_tab].data) + index);


I could observe this with following font:

fonts-smc-chilanka_1.400-1_all.deb from Ubuntu focal (20.04LTS).
https://packages.ubuntu.com/focal/fonts-smc-chilanka
http://de.archive.ubuntu.com/ubuntu/pool/main/f/fonts-smc-chilanka/fonts-smc-chilanka_1.400-1_all.deb


To reproduce just enter "Test" and select font "Chilanka" in either Notepad
or Word. Then attempt to print.


Attached path on top of 5.12 avoids the crash, but does still not
produce the expected output, maybe related to 42739.
But avoiding the crash separately might still be desired?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list