~ubuntu-branches/ubuntu/utopic/libxfont/utopic-proposed

« back to all changes in this revision

Viewing changes to src/bitmap/bitscale.c

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2014-05-13 17:25:49 UTC
  • Revision ID: package-import@ubuntu.com-20140513172549-0tospr47im3q9bej
Tags: 1:1.4.7-2
* Pull from upstream git to fix FTBFS with new fontsproto (closes: #746052)
* CVE-2014-0209: integer overflow of allocations in font metadata
* CVE-2014-0210: unvalidated length fields when parsing xfs protocol replies
* CVE-2014-0211: integer overflows calculating memory needs for xfs replies
* Add breaks on xfs because we broke it by disabling font protocol support
  in 1.4.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
751
751
 *  ScaleFont
752
752
 *  returns a pointer to the new scaled font, or NULL (due to AllocError).
753
753
 */
 
754
#pragma GCC diagnostic ignored "-Wbad-function-cast"
 
755
 
754
756
static FontPtr
755
757
ScaleFont(FontPtr opf,            /* originating font */
756
758
          double widthMult,       /* glyphs width scale factor */
811
813
       needs to be for the output font */
812
814
    if (vals->nranges)
813
815
    {
814
 
        int i;
815
 
 
816
816
        pfi->allExist = 0;
817
817
        firstCol = 255;
818
818
        lastCol = 0;