You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

freetype-2.3.11-CVE-2010-3855.patch 652B

1234567891011121314151617181920
  1. --- freetype-2.3.11/src/truetype/ttgxvar.c.orig 2009-07-31 18:45:19.000000000 +0200
  2. +++ freetype-2.3.11/src/truetype/ttgxvar.c 2010-10-22 08:52:37.000000000 +0200
  3. @@ -157,7 +157,7 @@
  4. runcnt = runcnt & GX_PT_POINT_RUN_COUNT_MASK;
  5. first = points[i++] = FT_GET_USHORT();
  6. - if ( runcnt < 1 )
  7. + if ( runcnt < 1 || i + runcnt >= n )
  8. goto Exit;
  9. /* first point not included in runcount */
  10. @@ -168,7 +168,7 @@
  11. {
  12. first = points[i++] = FT_GET_BYTE();
  13. - if ( runcnt < 1 )
  14. + if ( runcnt < 1 || i + runcnt >= n )
  15. goto Exit;
  16. for ( j = 0; j < runcnt; ++j )