diff --git a/Fix-colm_-m-coredump.patch b/Fix-colm_-m-coredump.patch new file mode 100644 index 0000000000000000000000000000000000000000..f96871c5436bd3471c3d79c4f135a01a9637ff44 --- /dev/null +++ b/Fix-colm_-m-coredump.patch @@ -0,0 +1,18 @@ +diff -Nur a/src/exports.cc b/src/exports.cc +--- a/src/exports.cc 2024-04-02 16:52:22.374784248 +0800 ++++ b/src/exports.cc 2024-04-02 16:54:11.808370595 +0800 +@@ -165,8 +165,12 @@ + { + ostream &out = *outStream; + +- char *headerFn = strdup( exportHeaderFn ); +- char *suffix = strstr( headerFn, ".pack" ); ++ char *headerFn = NULL; ++ char *suffix = NULL; ++ if (exportHeaderFn != 0) { ++ headerFn = strdup( exportHeaderFn ); ++ suffix = strstr( headerFn, ".pack" ); ++ } + if ( suffix != 0 && strcmp( suffix, ".pack" ) == 0 ) + *suffix = 0; + diff --git a/colm.spec b/colm.spec index 7784e9de5ad1e0854368403a6f6f98766d91a6ca..e35219633b47638eebea74c571140e82e484f203 100644 --- a/colm.spec +++ b/colm.spec @@ -1,6 +1,6 @@ Name: colm Version: 0.14.7 -Release: 1 +Release: 2 Summary: Programming language designed for the analysis of computer languages # aapl/ and some headers from src/ are the LGPLv2+ @@ -9,6 +9,7 @@ URL: https://www.colm.net/open-source/colm/ Source0: https://www.colm.net/files/%{name}/%{name}-%{version}.tar.gz Patch0: change-config.patch Patch1: colm-libfsm-ac_check_lib.patch +Patch2: Fix-colm_-m-coredump.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -72,6 +73,9 @@ install -p -m 0644 -D %{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{ %{_includedir}/aapl* %changelog +* Tue Apr 02 2024 wulei - 0.14.7-2 +- Fix core dump + * Thu Sep 14 2023 xu_ping <707078654@qq.com> - 0.14.7-1 - Upgrade version to 0.14.7