diff --git a/augeas.spec b/augeas.spec index 3e48ec6d0216fab43a2abc37d4ae65ffcfd3c11e..3306f69e5d67c5c0b6dc1dc81f4dae85335ba5da 100644 --- a/augeas.spec +++ b/augeas.spec @@ -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 - 1.13.0-5 +- fix segment fault when use augtool command + * Thu Jun 16 2022 wangkerong - 1.13.0-4 - revert this patch,resolv use-after-free issue when fuzz test diff --git a/fix-segment-fault-when-use-augtool.patch b/fix-segment-fault-when-use-augtool.patch new file mode 100644 index 0000000000000000000000000000000000000000..1da0b95657ea2e5659421e36dcd310b3ecf5b9fe --- /dev/null +++ b/fix-segment-fault-when-use-augtool.patch @@ -0,0 +1,24 @@ +From f13e8f91110e1fa3dbd1e053c8f6ffee9e6cdd5d Mon Sep 17 00:00:00 2001 +From: wangkerong +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 +