~ubuntu-branches/ubuntu/trusty/freetype/trusty-updates

« back to all changes in this revision

Viewing changes to debian/patches-freetype/CVE-2012-1133.patch

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-08-03 13:57:01 UTC
  • mfrom: (1.2.1) (34.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20120803135701-ird6b33po0ygwadl
Tags: 2.4.10-0ubuntu1
* New upstream version
* debian/libfreetype6.symbols:
  - new version update
* debian/patches-freetype/savannah-bug-35847.patch,
  debian/patches-freetype/savannah-bug-35833.patch:
  - dropped, the fixes are in the new version
* Resynchronize on Debian, remaining diff:
* debian/patches-freetype/revert_scalable_fonts_metric.patch:
  - revert commit "Fix metrics on size request for scalable fonts.",
    it's breaking gtk underlining markups and creating some other 
    issues as well (lp: #972223)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Force negative encoding values to follow the spec
2
 
Origin: upstream, http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=28dd2c45957278e962f95633157b6139de8170aa
3
 
 
4
 
Index: freetype-2.4.8/src/bdf/bdflib.c
5
 
===================================================================
6
 
--- freetype-2.4.8.orig/src/bdf/bdflib.c        2012-03-20 15:33:55.000000000 -0500
7
 
+++ freetype-2.4.8/src/bdf/bdflib.c     2012-03-20 15:44:43.560369850 -0500
8
 
@@ -1587,6 +1587,11 @@
9
 
 
10
 
       p->glyph_enc = _bdf_atol( p->list.field[1], 0, 10 );
11
 
 
12
 
+      /* Normalize negative encoding values.  The specification only */
13
 
+      /* allows -1, but we can be more generous here.                */
14
 
+      if ( p->glyph_enc < -1 )
15
 
+        p->glyph_enc = -1;
16
 
+
17
 
       /* Check that the encoding is in the range [0,65536] because */
18
 
       /* otherwise p->have (a bitmap with static size) overflows.  */
19
 
       if ( p->glyph_enc > 0                               &&