Compare commits

..

No commits in common. "f2242bf2ee05f3a6a7f5fc0e6f2ca3f31afb9636" and "ef8fd6c639ed5b81c1073435f8ebbbac0211fa3f" have entirely different histories.

5 changed files with 21 additions and 86 deletions

View File

@ -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;

BIN
libical-3.0.3.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,52 +0,0 @@
From 3eacf85ec9dd638c2023c89c2a6cdf61107fc617 Mon Sep 17 00:00:00 2001
From: Kent Sutherland <git@ksuther.com>
Date: Fri, 14 Jun 2019 15:21:59 -0500
Subject: [PATCH] Fix timeout found by fuzzer (oss-fuzz issue 14881) strspn is
really slow compared to doing direct comparisons
---
src/libical/icalparser.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/libical/icalparser.c b/src/libical/icalparser.c
index fa92495..0530a4b 100644
--- a/src/libical/icalparser.c
+++ b/src/libical/icalparser.c
@@ -221,21 +221,29 @@ static void parser_decode_param_value(char *value)
char *in, *out;
for (in = out = value; *in; in++, out++) {
- if (*in == '^' && strspn(in+1, "n^'")) {
- switch (*++in) {
- case 'n':
+ int found_escaped_char = 0;
+
+ if(*in == '^'){
+ switch (*(in + 1)) {
+ case 'n':
*out = '\n';
+ found_escaped_char = 1;
break;
-
case '^':
*out = '^';
+ found_escaped_char = 1;
break;
case '\'':
*out = '"';
+ found_escaped_char = 1;
break;
}
- } else {
+ }
+
+ if(found_escaped_char) {
+ ++in;
+ } else {
*out = *in;
}
}
--
2.19.1

View File

@ -1,19 +1,18 @@
Name: libical
Version: 3.0.8
Release: 1
Version: 3.0.3
Release: 8
Summary: An Open Source implementation of the iCalendar protocols and protocol data formats.
License: LGPLv2 or MPLv2.0
URL: https://libical.github.io/libical/
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++ cmake gtk-doc perl-interpreter vala pkgconfig
BuildRequires: python3 python3-pip python3-gobject libxslt
BuildRequires: pkgconfig(icu-uc) pkgconfig(gobject-2.0) pkgconfig(gobject-introspection-1.0) pkgconfig(libxml-2.0) pkgconfig(icu-i18n)
Requires: tzdata
Provides: libical-glib = %{version}-%{release}
Obsoletes: libical-glib < %{version}-%{release}
Patch1: libical-3.0.3-covscan.patch
Patch0: libical-bugfix-timeout-found-by-fuzzer.patch
BuildRequires: gcc-c++ cmake gtk-doc perl-interpreter vala pkgconfig
BuildRequires: python3 python3-pip python3-gobject
BuildRequires: pkgconfig(icu-uc) pkgconfig(gobject-2.0) pkgconfig(gobject-introspection-1.0) pkgconfig(libxml-2.0) pkgconfig(icu-i18n)
Provides: libical-glib
Obsoletes: libical-glib
%description
Libical is an open source implementation of the IETF's iCalendar calendaring
@ -24,10 +23,8 @@ the component properties, parameters, and subcomponents.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Provides: libical-glib-doc = %{version}-%{release}
Provides: libical-glib-devel = %{version}-%{release}
Obsoletes: libical-glib-doc < %{version}-%{release}
Obsoletes: libical-glib-devel < %{version}-%{release}
Provides: libical-glib-doc, libical-glib-devel
Obsoletes: libical-glib-doc, libical-glib-devel
%description devel
Contains libraries and header files for libical.
@ -76,26 +73,5 @@ make test ARGS="-V" -C %{_target_platform}
%{_datadir}/gtk-doc/html/%{name}-glib
%changelog
* Wed Aug 19 2020 yuboyun <yuboyun@huawei.com> - 3.0.8-1
- Type:update
- Id:NA
- SUG:NA
- DESC:update to 3.0.8
* Tue Mar 10 2020 songnannan <songnannan2@huawei.com> - 3.0.4-2
- bugfix in oss-fuzz
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.0.4-1
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:updtae to 3.0.4
* Thu Dec 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.3-9
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add require tzdata
* Sat Sep 14 2019 chenzhenyu <chenzhenyu13@huawei.com> - 3.0.3-8
- Package init