bugThe FreeType Project - Bugs: bug #44184, fix invalid hmtx table length in...

 
 

bug #44184: fix invalid hmtx table length in TTF

Submitted by:  Aleksei Volkov <master_volkov>
Submitted on:  Wed 04 Feb 2015 10:04:43 AM UTC  
 
Severity: 3 - NormalItem Group: Wishlist
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 07 Feb 2015 08:23:18 PM UTC, comment #3:

Thanks for testing. Note that it might be not safe to blindly apply the patch to earlier FreeType versions! Reason is that there were a large bunch of security fixes that check numeric overflows and the like, and it might be possible that those earlier versions don't have them for the metrics code.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 07 Feb 2015 05:02:42 PM UTC, comment #2:

With you commit http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=92359bd8851448ba40167affdf5663659a7b28f0

fonts in thet pdf visible OK. I test that patch on freetype-2.5.3 (gentoo linux) and freetype-2.5.2 (debian jessie) - all char visible.

Codepage is wrong, but that poppler's problem (temporary can be solved with patch from https://bugs.freedesktop.org/show_bug.cgi?id=88939)

Feature can be closed as solved, thank you for fast and good solution.

Aleksei Volkov <master_volkov>
Sat 07 Feb 2015 08:49:25 AM UTC, comment #1:

I've now added code to sanitize the length of htmx and vmtx tables. Please check.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Wed 04 Feb 2015 10:04:43 AM UTC, original submission:

At the end of the discussion on the bug:
https://savannah.nongnu.org/bugs/?44169

Some PDF creator engine create pdf with embedded fonts, which have problems in hmtx table.
An example of such a pdf attachment.

These pdf Windows open without problems, but in linux (at least using freetype2 + poppler) the text is invisible.

I created a bug for poppler https://bugs.freedesktop.org/show_bug.cgi?id=88939 (there is also a problem due to incorrect hmtx)

P.S. If you apply to freefont2 patch https://savannah.nongnu.org/bugs/download.php?file_id=32981 the font is visible

Aleksei Volkov <master_volkov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by master_volkov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 07 Feb 2015 08:49:25 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.0
      Summaryfix wrong or adsent hmtx table in TTF=>fix invalid hmtx table length in TTF
    Wed 04 Feb 2015 10:04:43 AM UTCmaster_volkovAttached File-=>Added 2778 - embedded font without hmtx table.pdf, #32991

    Back to the top


    Powered by Savane 3.1-cleanup1