diff --git a/libical-3.0.3-covscan.patch b/libical-3.0.3-covscan.patch new file mode 100644 index 0000000..3ed01f2 --- /dev/null +++ b/libical-3.0.3-covscan.patch @@ -0,0 +1,11 @@ +diff -up libical-3.0.3/src/libical-glib/tools/generator.c.covscan libical-3.0.3/src/libical-glib/tools/generator.c +--- libical-3.0.3/src/libical-glib/tools/generator.c.covscan 2018-07-19 15:53:11.291351554 +0200 ++++ libical-3.0.3/src/libical-glib/tools/generator.c 2018-07-19 15:53:25.200351362 +0200 +@@ -1142,7 +1142,6 @@ void generate_forward_declarations_heade + if (c == '$') { + if ((c = fgetc(in)) != '{' && c != '^') { + printf("The following char is not {"); +- g_free (buffer); + fclose(in); + fclose(out); + return; diff --git a/libical.spec b/libical.spec index d733007..bd37210 100644 --- a/libical.spec +++ b/libical.spec @@ -1,11 +1,13 @@ Summary: Reference implementation of the iCalendar data type and serialization format Name: libical Version: 3.0.3 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPLv2 or MPLv2.0 URL: https://libical.github.io/libical/ Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch01: libical-3.0.3-covscan.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake @@ -61,6 +63,8 @@ Development files needed for building things which link against %{name}-glib. %prep %setup -q +%patch01 -p1 -b .covscan + %build mkdir -p %{_target_platform} pushd %{_target_platform} @@ -123,6 +127,9 @@ make test ARGS="-V" -C %{_target_platform} %{_datadir}/gtk-doc/html/%{name}-glib %changelog +* Thu Jul 19 2018 Milan Crha - 3.0.3-7 +- Address a warning found by Coverity Scan + * Fri Jul 13 2018 Fedora Release Engineering - 3.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild