!64 [sync] PR-63: fix segment fault when use augtool command
From: @openeuler-sync-bot Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
5ae07e3f18
@ -1,6 +1,6 @@
|
||||
Name: augeas
|
||||
Version: 1.12.0
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: Augeas is a configuration editing tool for changing configuration files
|
||||
License: LGPLv2+
|
||||
URL: https://augeas.net/
|
||||
@ -11,6 +11,8 @@ Provides: bundled(gnulib)
|
||||
Provides: augeas-libs = %{version}-%{release} augeas-libs%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: augeas-libs < %{version}-%{release}
|
||||
|
||||
Patch9000: fix-segment-fault-when-use-augtool.patch
|
||||
|
||||
%description
|
||||
Augeas is a configuration editing tool. It parses configuration files in their native
|
||||
formats and transforms them into a tree. Configuration changes are made by manipulating
|
||||
@ -81,6 +83,9 @@ make check
|
||||
%doc %{_mandir}/man1/au*.1.gz
|
||||
|
||||
%changelog
|
||||
* Tue Dec 13 2022 wangkerong <wangkerong@h-partners.com> - 1.12.0-7
|
||||
- fix segment fault when use augtool command
|
||||
|
||||
* Thu Mar 18 2021 chengguipeng <chengguipeng1@huawei.com> - 1.12.0-6
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
24
fix-segment-fault-when-use-augtool.patch
Normal file
24
fix-segment-fault-when-use-augtool.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From f13e8f91110e1fa3dbd1e053c8f6ffee9e6cdd5d Mon Sep 17 00:00:00 2001
|
||||
From: wangkerong <wangkerong@h-partners.com>
|
||||
Date: Tue, 10 May 2022 14:35:21 +0800
|
||||
Subject: [PATCH] modify-augtool-err.patch
|
||||
|
||||
---
|
||||
src/get.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/get.c b/src/get.c
|
||||
index 94b9ba2..64dc5c1 100644
|
||||
--- a/src/get.c
|
||||
+++ b/src/get.c
|
||||
@@ -455,6 +455,7 @@ static int match(struct state *state, struct lens *lens,
|
||||
if (count < -1) {
|
||||
regexp_match_error(state, lens, count, re);
|
||||
FREE(regs);
|
||||
+ FREE(re->re);
|
||||
return -1;
|
||||
}
|
||||
state->regs = regs;
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user