- update to 2.0.16:

* long list of accumulated bug, security and portability fixes
  * see https://librdf.org/raptor/RELEASE.html#rel2_0_16
- drop
  0001-Calcualte-max-nspace-declarations-correctly-for-XML-.patch.1:
  obsolete/upstream
- ubsan.patch: refresh

OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/raptor?expand=0&rev=45
This commit is contained in:
Dirk Mueller 2023-03-07 12:24:43 +00:00 committed by Git OBS Bridge
parent 310f7f2dbb
commit 6a3139e3fd
8 changed files with 31 additions and 78 deletions

View File

@ -1,43 +0,0 @@
From 590681e546cd9aa18d57dc2ea1858cb734a3863f Mon Sep 17 00:00:00 2001
From: Dave Beckett <dave@dajobe.org>
Date: Sun, 16 Apr 2017 23:15:12 +0100
Subject: [PATCH] Calcualte max nspace declarations correctly for XML writer
(raptor_xml_writer_start_element_common): Calculate max including for
each attribute a potential name and value.
Fixes Issues #0000617 http://bugs.librdf.org/mantis/view.php?id=617
and #0000618 http://bugs.librdf.org/mantis/view.php?id=618
---
src/raptor_xml_writer.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/raptor_xml_writer.c b/src/raptor_xml_writer.c
index 693b946..0d3a36a 100644
--- a/src/raptor_xml_writer.c
+++ b/src/raptor_xml_writer.c
@@ -181,9 +181,10 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer,
size_t nspace_declarations_count = 0;
unsigned int i;
- /* max is 1 per element and 1 for each attribute + size of declared */
if(nstack) {
- int nspace_max_count = element->attribute_count+1;
+ int nspace_max_count = element->attribute_count * 2; /* attr and value */
+ if(element->name->nspace)
+ nspace_max_count++;
if(element->declared_nspaces)
nspace_max_count += raptor_sequence_size(element->declared_nspaces);
if(element->xml_language)
@@ -237,7 +238,7 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer,
}
}
- /* Add the attribute + value */
+ /* Add the attribute's value */
nspace_declarations[nspace_declarations_count].declaration=
raptor_qname_format_as_xml(element->attributes[i],
&nspace_declarations[nspace_declarations_count].length);
--
2.9.3

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 7 12:23:30 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.0.16:
* long list of accumulated bug, security and portability fixes
* see https://librdf.org/raptor/RELEASE.html#rel2_0_16
- drop
0001-Calcualte-max-nspace-declarations-correctly-for-XML-.patch.1:
obsolete/upstream
- ubsan.patch: refresh
-------------------------------------------------------------------
Tue Nov 10 08:59:36 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package raptor
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,18 +17,17 @@
Name: raptor
Version: 2.0.15
Version: 2.0.16
Release: 0
Summary: RDF Parser Toolkit
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR Apache-2.0
License: Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
Group: System/Libraries
URL: http://librdf.org/raptor/
Source0: http://download.librdf.org/source/%{name}2-%{version}.tar.gz
Source1: http://download.librdf.org/source/raptor2-%{version}.tar.gz.asc
URL: https://librdf.org/raptor/
Source0: https://download.librdf.org/source/%{name}2-%{version}.tar.gz
Source1: https://download.librdf.org/source/raptor2-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: baselibs.conf
Patch1: https://raw.githubusercontent.com/LibreOffice/core/master/external/redland/raptor/0001-Calcualte-max-nspace-declarations-correctly-for-XML-.patch.1
Patch2: https://raw.githubusercontent.com/LibreOffice/core/master/external/redland/raptor/ubsan.patch
Patch2: ubsan.patch
BuildRequires: bison
BuildRequires: curl-devel
BuildRequires: libicu-devel
@ -67,7 +66,6 @@ raptor library.
%prep
%setup -q -n %{name}2-%{version}
%patch1 -p1
%patch2
%build

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
size 1886657

View File

@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iD8DBQBUVc6+Q+ySUE9xlVoRAnxqAKCRqSzc78OIh8orUDjdKhVQEcur6ACgpum4
OQfk2Dv5Vj5nn2JNrHa3loE=
=rKa+
-----END PGP SIGNATURE-----

BIN
raptor2-2.0.16.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQT4efDe2ngBmN0I3GRD7JJQT3GVWgUCY/+plgAKCRBD7JJQT3GV
WqVvAJ9KqFljL1WQAKgWo+KamkDo9sHLPgCdH+3MgyyJf8BcbcMim8EQQuPqsH0=
=OAOH
-----END PGP SIGNATURE-----

View File

@ -1,6 +1,8 @@
--- src/raptor_rfc2396.c
Index: src/raptor_rfc2396.c
===================================================================
--- src/raptor_rfc2396.c.orig
+++ src/raptor_rfc2396.c
@@ -386,7 +386,7 @@
@@ -386,7 +386,7 @@ raptor_uri_normalize_path(unsigned char*
}
@ -9,17 +11,3 @@
/* Remove <component>/.. at the end of the path */
*prev = '\0';
path_len -= (s-prev);
--- src/raptor_uri.c
+++ src/raptor_uri.c
@@ -1336,9 +1336,9 @@
!strncmp((const char*)base_detail->scheme,
(const char*)reference_detail->scheme,
base_detail->scheme_len) &&
- !strncmp((const char*)base_detail->authority,
+ (base_detail->authority_len == 0 || !strncmp((const char*)base_detail->authority,
(const char*)reference_detail->authority,
- base_detail->authority_len)) {
+ base_detail->authority_len))) {
if(!base_detail->path) {
if(reference_detail->path) {