!6 修复colm -x参数执行core dump问题
From: @wu-leilei Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
07e09edf54
18
Fix-colm_-m-coredump.patch
Normal file
18
Fix-colm_-m-coredump.patch
Normal file
@ -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;
|
||||
|
||||
@ -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 <wu_lei@hoperun.com> - 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user