diff --git a/freetype2.changes b/freetype2.changes index 5587455..8c43fb0 100644 --- a/freetype2.changes +++ b/freetype2.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Aug 18 16:38:09 CEST 2008 - mfabian@suse.de + +- fix uninitialized pointer "FT_STREAM stream" in function + FT_Open_Face() which made fontforge crash while trying to apply + a workaround to the sazanami-fonts because fontforge called + FT_Open_Face() with 0 for the FT_Library argument and + then freetype crashed in FT_Stream_Free(). + ------------------------------------------------------------------- Wed Jul 23 12:20:30 CEST 2008 - mfabian@suse.de diff --git a/freetype2.spec b/freetype2.spec index ec26965..93a0ff3 100644 --- a/freetype2.spec +++ b/freetype2.spec @@ -2,9 +2,16 @@ # spec file for package freetype2 (Version 2.3.7) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -17,7 +24,7 @@ License: Other uncritical OpenSource License Group: System/Libraries AutoReqProv: on Version: 2.3.7 -Release: 1 +Release: 13 Url: http://www.freetype.org Summary: A TrueType Font Library # CVS repository: @@ -33,6 +40,7 @@ Patch4: ft2-stream-compat.diff Patch5: revert-fix-bytecode.patch Patch8: bugzilla-159166-reduce-embolden-distance.patch Patch9: fix-build.patch +Patch10: uninitialized-variable.patch Patch308961: bugzilla-308961-cmex-workaround.patch Patch100: freetype2-bc.patch Patch200: freetype2-subpixel.patch @@ -87,7 +95,8 @@ Authors: %patch4 -p 1 -b .ft2-stream-compat #%patch5 -p 1 #%patch8 -p 1 -%%patch9 -p 1 +%patch9 -p 1 +%patch10 -p 1 %patch308961 -p 1 %if %{enable_bytecode_interpreter} %patch100 -p 1 -b .bytecode @@ -142,6 +151,12 @@ make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install /usr/share/aclocal/* %changelog +* Mon Aug 18 2008 mfabian@suse.de +- fix uninitialized pointer "FT_STREAM stream" in function + FT_Open_Face() which made fontforge crash while trying to apply + a workaround to the sazanami-fonts because fontforge called + FT_Open_Face() with 0 for the FT_Library argument and + then freetype crashed in FT_Stream_Free(). * Wed Jul 23 2008 mfabian@suse.de - update to 2.3.7. Extract from the docs/CHANGES file: • If the library was compiled on an i386 platform using gcc, and diff --git a/ft2demos.changes b/ft2demos.changes index e58d207..4209f32 100644 --- a/ft2demos.changes +++ b/ft2demos.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Aug 18 16:38:09 CEST 2008 - mfabian@suse.de + +- fix uninitialized pointer "FT_STREAM stream" in function + FT_Open_Face() which made fontforge crash while trying to apply + a workaround to the sazanami-fonts because fontforge called + FT_Open_Face() with 0 for the FT_Library argument and + then freetype crashed in FT_Stream_Free(). + ------------------------------------------------------------------- Wed Jul 23 12:20:30 CEST 2008 - mfabian@suse.de diff --git a/ft2demos.spec b/ft2demos.spec index 8337f01..5b13870 100644 --- a/ft2demos.spec +++ b/ft2demos.spec @@ -2,9 +2,16 @@ # spec file for package ft2demos (Version 2.3.7) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -20,7 +27,7 @@ AutoReqProv: on Supplements: fonts-config %endif Version: 2.3.7 -Release: 1 +Release: 16 %define freetype_version %{version} Url: http://www.freetype.org Summary: Freetype2 Utilities and Demo Programs @@ -128,6 +135,12 @@ popd %{_bindir}/testname %changelog +* Mon Aug 18 2008 mfabian@suse.de +- fix uninitialized pointer "FT_STREAM stream" in function + FT_Open_Face() which made fontforge crash while trying to apply + a workaround to the sazanami-fonts because fontforge called + FT_Open_Face() with 0 for the FT_Library argument and + then freetype crashed in FT_Stream_Free(). * Wed Jul 23 2008 mfabian@suse.de - update to 2.3.7. Extract from the docs/CHANGES file: • If the library was compiled on an i386 platform using gcc, and diff --git a/uninitialized-variable.patch b/uninitialized-variable.patch new file mode 100644 index 0000000..b9dee0e --- /dev/null +++ b/uninitialized-variable.patch @@ -0,0 +1,12 @@ +diff -ru freetype-2.3.7.orig//src/base/ftobjs.c freetype-2.3.7/src/base/ftobjs.c +--- freetype-2.3.7.orig//src/base/ftobjs.c 2008-06-10 06:57:53.000000000 +0200 ++++ freetype-2.3.7/src/base/ftobjs.c 2008-08-18 16:16:38.000000000 +0200 +@@ -1713,7 +1713,7 @@ + FT_Error error; + FT_Driver driver; + FT_Memory memory; +- FT_Stream stream; ++ FT_Stream stream = NULL; + FT_Face face = 0; + FT_ListNode node = 0; + FT_Bool external_stream;