Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 260076 | Differences between
and this patch

Collapse All | Expand All

(-)src/bdf/bdflib.c.orig (+8 lines)
Lines 1578-1583 Link Here
1578
        goto Exit;
1578
        goto Exit;
1579
      }
1579
      }
1580
1580
1581
      /* Check that the encoding is in the range [0, 65535] because       */
1582
      /* otherwise p->have (a bitmap with static size) overflows.         */
1583
      if ( p->glyph_enc >= sizeof(p->have) * 8 )
1584
      {
1585
	error = BDF_Err_Invalid_File_Format; /* Not the ideal error code */
1586
	goto Exit;
1587
      }
1588
1581
      /* Check to see whether this encoding has already been encountered. */
1589
      /* Check to see whether this encoding has already been encountered. */
1582
      /* If it has then change it to unencoded so it gets added if        */
1590
      /* If it has then change it to unencoded so it gets added if        */
1583
      /* indicated.                                                       */
1591
      /* indicated.                                                       */

Return to bug 260076