fix segment fault when use augtool command
This commit is contained in:
parent
372aaf557c
commit
cf84eeb5ec
@ -1,6 +1,6 @@
|
||||
Name: augeas
|
||||
Version: 1.13.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Augeas is a configuration editing tool for changing configuration files
|
||||
License: LGPLv2+
|
||||
URL: https://augeas.net/
|
||||
@ -17,6 +17,7 @@ Patch6000: backport-revert-add-else-operator-to-augeas-path-filter-expressio
|
||||
%if "0%{?product_family}" != "0"
|
||||
Patch9000: decrease-HASHCOUNT_T_MAX-to-avoid-the-OOM-during-the-Fuzz-test.patch
|
||||
%endif
|
||||
Patch9001: fix-segment-fault-when-use-augtool.patch
|
||||
|
||||
%description
|
||||
Augeas is a configuration editing tool. It parses configuration files in their native
|
||||
@ -103,6 +104,9 @@ make check
|
||||
%doc %{_mandir}/man1/au*.1.gz
|
||||
|
||||
%changelog
|
||||
* Tue Dec 13 2022 wangkerong <wangkerong@h-partners.com> - 1.13.0-5
|
||||
- fix segment fault when use augtool command
|
||||
|
||||
* Thu Jun 16 2022 wangkerong <wangkerong@h-partners.com> - 1.13.0-4
|
||||
- revert this patch,resolv use-after-free issue when fuzz test
|
||||
|
||||
|
||||
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: root <root@localhost.localdomain>
|
||||
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