From 530de8f3c137a58ac41c7723799e0dc0b6bc4295 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 19 Jun 2024 16:33:20 -0700 Subject: [PATCH] Update to 0.12.9 This includes our fixes upstream and therefore removes vendor patches. Resolves: RHEL-42425 --- .gitignore | 1 + editorconfig.spec | 13 ++++++------ plug-leak-nums-utarray.patch | 39 ------------------------------------ sources | 2 +- 4 files changed, 9 insertions(+), 46 deletions(-) delete mode 100644 plug-leak-nums-utarray.patch diff --git a/.gitignore b/.gitignore index 1dde97d..d66f9eb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /editorconfig-core-c-0.12.5.tar.gz /editorconfig-core-c-0.12.6.tar.gz /editorconfig-core-c-0.12.7.tar.gz +/editorconfig-core-c-0.12.9.tar.gz diff --git a/editorconfig.spec b/editorconfig.spec index 544d31d..761aa20 100644 --- a/editorconfig.spec +++ b/editorconfig.spec @@ -15,8 +15,8 @@ editors.} Name: editorconfig Summary: Parser for EditorConfig files written in C -Version: 0.12.7 -Release: 2%{?dist} +Version: 0.12.9 +Release: 1%{?dist} # The entire source is BSD-2-Clause, except: # BSD-3-Clause: src/lib/ini.h @@ -34,8 +34,6 @@ License: BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause URL: https://github.com/editorconfig/editorconfig-core-c Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz -Patch0: plug-leak-nums-utarray.patch - BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc @@ -141,8 +139,11 @@ rm %{buildroot}/%{_libdir}/libeditorconfig_static.a %changelog -* Wed Jun 12 2024 Christian Hergert - 0.12.7-2 -- Add patch to plug resource leak of nums utarray +* Wed Jun 19 2024 Christian Hergert - 0.12.9-1 +- Update to 0.12.9 + +* Thu Jun 13 2024 Benjamin A. Beasley - 0.12.8-1 +- Update to 0.12.8 (close RHBZ#2292212) * Wed Apr 03 2024 Benjamin A. Beasley - 0.12.7-1 - Update to 0.12.7 (close RHBZ#2272370) diff --git a/plug-leak-nums-utarray.patch b/plug-leak-nums-utarray.patch deleted file mode 100644 index 68630c2..0000000 --- a/plug-leak-nums-utarray.patch +++ /dev/null @@ -1,39 +0,0 @@ -From ca14e1521e52981d94fbd35d7e8fcbc32c45fa50 Mon Sep 17 00:00:00 2001 -From: Christian Hergert -Date: Wed, 12 Jun 2024 13:21:49 -0700 -Subject: [PATCH] lib/ec_glob: plug leak of nums utarray - ---- - src/lib/ec_glob.c | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/src/lib/ec_glob.c b/src/lib/ec_glob.c -index c2b83cf..9bfaf9e 100644 ---- a/src/lib/ec_glob.c -+++ b/src/lib/ec_glob.c -@@ -53,16 +53,20 @@ static const UT_icd ut_int_pair_icd = {sizeof(int_pair),NULL,NULL,NULL}; - #define STRING_CAT(p, string, end) do { \ - size_t string_len = strlen(string); \ - assert(end > p); \ -- if (string_len >= (size_t)(end - p)) \ -+ if (string_len >= (size_t)(end - p)) { \ -+ utarray_free(nums); \ - return -1; \ -+ } \ - strcat(p, string); \ - p += string_len; \ - } while(0) - - /* safely add a char to a string then move the pointer to the end */ - #define ADD_CHAR(string, new_chr, end) do { \ -- if (string + 1 >= end) \ -+ if (string + 1 >= end) { \ -+ utarray_free(nums); \ - return -1; \ -+ } \ - *(string ++) = new_chr; \ - } while(0) - --- -2.45.1 - diff --git a/sources b/sources index 5ccbf9a..8a70a15 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (editorconfig-core-c-0.12.7.tar.gz) = 37af762ca5b9a83cb9062457ab5dd354c883a4e71329e84f7f49516dad02c04f5105753ad1dbfc41d63aeb24bbbb0a1b6a2a84215fddf8c34e6cff46f3dcd656 +SHA512 (editorconfig-core-c-0.12.9.tar.gz) = c5769871c8fc945f9fedf9d33803a4df03eadaee4b724243e6a653fb8418e35417c33c0f6ba8e1ea709d9841a21c7da36fd0fd696be5cc9ac36610812b9dd1f6