diff --git a/ttmkfdir-3.0.9-segfaults.patch b/ttmkfdir-3.0.9-segfaults.patch new file mode 100644 index 0000000..321061b --- /dev/null +++ b/ttmkfdir-3.0.9-segfaults.patch @@ -0,0 +1,13 @@ +--- ttmkfdir-3.0.9/directory.cpp.back 2005-10-08 14:25:37.839328408 +0800 ++++ ttmkfdir-3.0.9/directory.cpp 2005-10-08 14:26:00.021956136 +0800 +@@ -13,6 +13,10 @@ + directory::scan (const std::string &dir) + { + DIR *ttfdir = opendir(dir.c_str ()); ++ if (!ttfdir) { ++ printf("%s is not exist!\n", dir.c_str ()); ++ exit(-1); ++ } + + this->clear (); + dirpath = dir; diff --git a/ttmkfdir.spec b/ttmkfdir.spec index adf72f3..6a67942 100644 --- a/ttmkfdir.spec +++ b/ttmkfdir.spec @@ -1,7 +1,7 @@ Summary: Utility to create fonts.scale files for truetype fonts Name: ttmkfdir Version: 3.0.9 -Release: 17 +Release: 18 Source0: %{name}-%{version}.tar.bz2 Patch: ttmkfdir-3.0.9-cpp.patch Patch1: ttmkfdir-3.0.9-zlib.patch @@ -9,6 +9,7 @@ Patch2: ttmkfdir-3.0.9-fix-freetype217.patch Patch3: ttmkfdir-3.0.9-namespace.patch Patch4: ttmkfdir-3.0.9-fix-crash.patch Patch5: ttmkfdir-3.0.9-warnings.patch +Patch6: ttmkfdir-3.0.9-segfaults.patch License: GPL Group: Applications/System BuildRoot: %{_tmppath}/%{name}-root @@ -49,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/ttmkfdir %changelog +* Sat Oct 8 2005 LingNing Zhang -3.0.9-18 +- add ttmkfdir-3.0.9-segfaults.patch to fix bug #164969 + * Wed Aug 3 2005 Jens Petersen - 3.0.9-17 - replace ttmkfdir-3.0.9-defautl_enc_size.patch and ttmkfdir-3.0.9-crashplus.patch with ttmkfdir-3.0.9-fix-crash.patch