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-2012-1130.patch 745B

123456789101112131415161718192021
  1. --- freetype-2.3.11/src/pcf/pcfread.c 2009-10-10 19:32:28.000000000 +0200
  2. +++ freetype-2.3.11/src/pcf/pcfread.c 2012-03-28 10:29:54.000000000 +0200
  3. @@ -2,7 +2,7 @@
  4. FreeType font driver for pcf fonts
  5. - Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by
  6. + Copyright 2000-2010, 2012 by
  7. Francesco Zappa Nardelli
  8. Permission is hereby granted, free of charge, to any person obtaining a copy
  9. @@ -495,7 +495,8 @@ THE SOFTWARE.
  10. goto Bail;
  11. }
  12. - if ( FT_NEW_ARRAY( strings, string_size ) )
  13. + /* allocate one more byte so that we have a final null byte */
  14. + if ( FT_NEW_ARRAY( strings, string_size + 1 ) )
  15. goto Bail;
  16. error = FT_Stream_Read( stream, (FT_Byte*)strings, string_size );