Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

freetype-2.3.11-CVE-2012-1136.patch 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --- freetype-2.3.11/src/bdf/bdflib.c 2012-03-28 10:40:25.000000000 +0200
  2. +++ freetype-2.3.11/src/bdf/bdflib.c 2012-03-28 10:44:30.000000000 +0200
  3. @@ -1736,12 +1736,7 @@
  4. if ( ft_memcmp( line, "SWIDTH", 6 ) == 0 )
  5. {
  6. if ( !( p->flags & _BDF_ENCODING ) )
  7. - {
  8. - /* Missing ENCODING field. */
  9. - FT_ERROR(( "_bdf_parse_glyphs: " ERRMSG1, lineno, "ENCODING" ));
  10. - error = BDF_Err_Missing_Encoding_Field;
  11. - goto Exit;
  12. - }
  13. + goto Missing_Encoding;
  14. error = _bdf_list_split( &p->list, (char *)" +", line, linelen );
  15. if ( error )
  16. @@ -1756,6 +1751,9 @@
  17. /* Expect the DWIDTH (scalable width) field next. */
  18. if ( ft_memcmp( line, "DWIDTH", 6 ) == 0 )
  19. {
  20. + if ( !( p->flags & _BDF_ENCODING ) )
  21. + goto Missing_Encoding;
  22. +
  23. error = _bdf_list_split( &p->list, (char *)" +", line, linelen );
  24. if ( error )
  25. goto Exit;
  26. @@ -1781,6 +1779,9 @@
  27. /* Expect the BBX field next. */
  28. if ( ft_memcmp( line, "BBX", 3 ) == 0 )
  29. {
  30. + if ( !( p->flags & _BDF_ENCODING ) )
  31. + goto Missing_Encoding;
  32. +
  33. error = _bdf_list_split( &p->list, (char *)" +", line, linelen );
  34. if ( error )
  35. goto Exit;
  36. @@ -1880,6 +1881,12 @@
  37. }
  38. error = BDF_Err_Invalid_File_Format;
  39. + goto Exit;
  40. +
  41. + Missing_Encoding:
  42. + /* Missing ENCODING field. */
  43. + FT_ERROR(( "_bdf_parse_glyphs: " ERRMSG1, lineno, "ENCODING" ));
  44. + error = BDF_Err_Missing_Encoding_Field;
  45. Exit:
  46. return error;