From 082c7330d83860ee9b51e8a52809160262774519 Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Tue, 27 Dec 2022 22:15:50 -0800 Subject: 2023 --- ChangeLog | 274 ++++++++++++++++++++++++++-- INSTALL.html | 2 +- LICENSE.html | 6 +- NEWS.html | 161 +++++++++-------- RELEASE.html | 492 ++++++++++++++++++++++++++++++--------------------- configure.ac | 2 +- src/raptor_general.c | 4 +- 7 files changed, 640 insertions(+), 301 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e9f2fdc..5d0a5f87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,253 @@ +2023-02-22 Dave Beckett + + * docs/tmpl/section-avltree.sgml, + docs/tmpl/section-constants.sgml, docs/tmpl/section-www.sgml: + Updated doc templates + +2023-02-22 Dave Beckett + + * src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: + Remove set but unused variable i + +2022-12-27 Dave Beckett + + * ChangeLog, INSTALL.html, LICENSE.html, NEWS.html, RELEASE.html, + configure.ac, src/raptor_general.c: + 2023 and https + +2022-12-27 Dave Beckett + + * Merge pull request #53 from trofi/shared-by-default + CMakeLists.txt: default to shared libraries by default (just like + GNU configure) + +2022-12-26 Dave Beckett + + * Merge pull request #55 from thesamesam/clang16 configure.ac: fix + -Wimplicit-function-declaration in HAVE___FUNCTION_… + +2022-11-04 Sam James + + * configure.ac: configure.ac: fix -Wimplicit-function-declaration + in HAVE___FUNCTION__ test (Clang 16) + + Clang 16 will make -Wimplicit-function-declaration errors by + default. + + ``` error: call to undeclared library function 'printf' + with type 'int (const char *, ...)'; ISO C99 and later do not + support implicit function declarations + [-Werror,-Wimplicit-function-declaration] error: call to undeclared + library function 'printf' with type 'int (const char *, ...)'; ISO + C99 and later do not support implicit function declarations + [-Werror,-Wimplicit-function-declaration] ``` + + For more information, see LWN.net [0] or LLVM's Discourse [1], + gentoo-dev@ [2], or the (new) c-std-porting mailing list [3]. [0] + https://lwn.net/Articles/913505/ [1] + + https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213[2] + + https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240[3] hosted at lists.linux.dev. + +2022-07-08 Dave Beckett + + * Merge pull request #52 from Artturin/cmakefix + +2022-07-03 Dave Beckett + + * src/raptor_uri.c: + (raptor_uri_counted_filename_to_uri_string): Copy NUL when copyin + file:// prefix. Coverity false positive since the following lines + of code always add more characters and a NUL. "Fixes" CID 353858 + +2022-06-15 Artturin + + * src/CMakeLists.txt: + fix the cmake generated pc file before + libdir=${exec_prefix}//nix/store/i7abvb760gzca1wqk9g617shqdj5sr7f-raptor2-aarch64-unknown-linux-gnu-2.0.15/lib + includedir=${prefix}//nix/store/i7abvb760gzca1wqk9g617shqdj5sr7f-raptor2-aarch64-unknown-linux-gnu-2.0.15/include/raptor2note the double // due to CMAKE_INSTALL_LIBDIR already being a + absolute path after + libdir=/nix/store/rlhzlak7chagd23898n1x9id6f5a6qpn-raptor2-aarch64-unknown-linux-gnu-2.0.15/lib + includedir=/nix/store/rlhzlak7chagd23898n1x9id6f5a6qpn-raptor2-aarch64-unknown-linux-gnu-2.0.15/include/raptor2 + +2022-06-06 Dave Beckett + + * src/raptor_internal.h, src/raptor_nfc_icu.c, + src/raptor_rdfxml.c, src/raptor_unicode.c, + tests/rdfxml/Makefile.am: Fix internal ICU string NFC check to + convert to UTF-16 first + + (raptor_nfc_icu_check, raptor_unicode_check_utf8_nfc_string): + Changed signature of these internal functions to not have error_p + which wasn't even consistently used. Instead return -1 on failure + which is also "falsey" in C. + + (raptor_nfc_icu_check): Do an UTF-8 (raptor) to UTF-16 conversion + before trying to do a NFC normalization check. Update callers of + above internal functions to remove error_p argument which was + unused in all callers. Update rdfxmla tests to allow tests to + throw warnings. + +2022-06-04 Dave Beckett + + * Merge pull request #50 from passware/enkey/cases/POS-5043 + +2021-12-24 mathvich + + * src/CMakeLists.txt: [POS-5320] librdfa directory fix + + * CMakeLists.txt, src/CMakeLists.txt: [POS-5230] librdfa directory fix + + * CMakeLists.txt, src/CMakeLists.txt: [POS-5230] tabs changed to spaces + +2021-12-15 mathvich + + * utils/CMakeLists.txt: [POS-5103] utils dir fix + + * CMakeLists.txt: [POS-5103] returned to origin + + * CMakeLists.txt: [POS-5103] debug message + +2021-12-14 mathvich + + * CMakeLists.txt: [POS-5103] directory change + + * CMakeLists.txt: [POS-5103] directory change + + * src/CMakeLists.txt: [POS-5103] scripts directory fix + +2021-11-29 Dave Beckett + + * src/raptor_www_curl.c: + (raptor_www_curl_set_ssl_cert_options) Set res + +2021-11-21 Dave Beckett + + * src/turtle_parser.y: Add va_end to turtle_parser_error_simple + error paths + + (turtle_parser_error_simple): Ensure va_end is always called on all + normal and error paths. [coverity CID 343351] + + * src/raptor_internal.h, src/raptor_www.c, src/raptor_www_curl.c: + Summary: Check curl_easy_setopt() return values for errors In + several places check for curl_easy_setopt() erorr returns and + fail. [coverity CID 343360] + + (raptor_new_www_with_connection): On curl module init failures, + free up www object before error return. + + (raptor_www_curl_init): + Return error value for failure in init, check all calls with a + macro. + + (raptor_www_curl_fetch, raptor_www_curl_set_ssl_cert_options) + (raptor_www_curl_set_ssl_verify_options): Check and set error + messages on failure + +2021-11-21 Dave Beckett + + * src/raptor_grddl.c: + Fix leak on failure of WWW model methods + + (raptor_grddl_fetch_uri): On WWW call failures, free up www object + before error return. [coverity CID 343353] + + * librdfa/curie.c: Fix check for ".." string (rdfa_resolve_uri): + Fix check for ".." that never matched; if was always false + [coverity CID 343354] + + * src/raptor_serialize_rdfxmla.c: + Handle leak of iter on failure + + (raptor_rdfxmla_emit_subject_properties): Handle leak of iter on + rv failure by breaking loop to let normal return handle it. + [coverity CID 343358] + +2021-11-14 Dave Beckett + + * CMakeLists.txt, src/raptor_config_cmake.h.in: Add cmake check + for time.h with HAVE_TIME_H + +2021-11-09 mathvich + + * CMakeLists.txt, src/raptor_config_cmake.h.in: Fix for CMake + build on Windows HAVE_TIME_H definition added + +2021-10-16 Dave Beckett + + * configure.ac: Fix newline quoting for OSX sh/bash compatibility + + * Makefile.am: old ChangeLog are not interesting + +2021-10-13 Dave Beckett + + * src/Makefile.am: Add parsedate.h to BUILT_SOURCES + + * configure.ac: + Update bison check to find first new enough GNU + bison This probably should find all versions and pick the latest but + that's not so easy in this AC_PATH_PROGS_FEATURE_CHECK approach. It + remains that it can be overrridden with the BISON envar, as before. + +2021-10-10 Dave Beckett + + * src/parsedate.y: Remove ancient protection around ctype calls + The isTHING() calls do not need an isascii() wrapper ever. + + * src/parsedate.y, src/raptor_internal.h: Fix time header check + with HAVE_ prefix + + * configure.ac, src/parsedate.y, src/raptor_internal.h: Fix + headers after removal of AC_HEADER_TIME + +2021-10-09 Dave Beckett + + * configure.ac, src/parsedate.y: Remove and fix obsolete autoconf + - Give AC_PROG_LEX an argument + - Remove AC_HEADER_TIME + - Remove AC_HEADER_STDC and uses + - Update explicit header checks adding getopt.h unistd.h + +2021-09-20 Dave Beckett + + * INSTALL.html, LICENSE.html, README.html: + 2021 + +2021-09-19 Dave Beckett + + * NEWS.html, RELEASE.html: + Document CVE-2017-18926 fix commit + + * tests/rdfxml/Makefile.am: add bug-650.out + +2021-09-18 Dave Beckett + + * src/raptor_xml_writer.c: + XML Writer : compare namespace + declarations correctly Apply patch from + 0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1 + that fixes Issue#0000650 + https://bugs.librdf.org/mantis/view.php?id=650 which overwrote heap + during XML writing in parse type literal content. This was detected + with clang asan. Thanks to Michael Stahl / mst2 for the fix. + + * tests/rdfxml/CMakeLists.txt, tests/rdfxml/Makefile.am, + tests/rdfxml/bug-650.out, tests/rdfxml/bug-650.rdf: + Add Issue + #0000650 example to trigger clang asan failure + + * README.html, utils/rapper.1: + Mention Atom 0.3 in docs and manual + page Fixes Issue#0000652 https://bugs.librdf.org/mantis/view.php?id=652 + +2020-10-25 Dave Beckett + + * docs/raptor2-sections.txt: Add raptor_avltree_trim + + * Remove callers of deprecated raptor_www setters + 2020-10-25 Dave Beckett * src/raptor_grddl.c, src/raptor_parse.c, src/raptor_www_test.c: @@ -246,7 +496,7 @@ #RAPTOR_ESCAPED_WRITE_JSON_LITERAL and document why Fixes Issues #0000606 - http://bugs.librdf.org/mantis/view.php?id=606 + https://bugs.librdf.org/mantis/view.php?id=606 * src/raptor_xml.c, src/raptor_xml_writer.c: Make nsd compare methods handle NULLs (raptor_nsd_compare, @@ -260,12 +510,12 @@ for each attribute a potential name and value. Fixes Issues #0000617 - http://bugs.librdf.org/mantis/view.php?id=617 + https://bugs.librdf.org/mantis/view.php?id=617 and #0000618 - http://bugs.librdf.org/mantis/view.php?id=618 + https://bugs.librdf.org/mantis/view.php?id=618 * src/sort_r.h: Accept cygwin as a Linux-like Fixes Issue - #00000600 http://bugs.librdf.org/mantis/view.php?id=600 + #00000600 https://bugs.librdf.org/mantis/view.php?id=600 2017-04-02 Dave Beckett @@ -968,7 +1218,7 @@ \r in TRiG "graph-name {" Fixes Issue #0000584 - http://bugs.librdf.org/mantis/view.php?id=584 + https://bugs.librdf.org/mantis/view.php?id=584 * src/turtle_lexer.l: (turtle_token_print): Add GRAPH_NAME_LEFT_CURLY @@ -1018,14 +1268,14 @@ raptor_world_get_serializers_count): Added Fixes Issue #0000581 - http://bugs.librdf.org/mantis/view.php?id=581 + https://bugs.librdf.org/mantis/view.php?id=581 2014-10-26 Dave Beckett * src/raptor_general.c: doc fix Fixes Issue #0000579 - http://bugs.librdf.org/mantis/view.php?id=579 + https://bugs.librdf.org/mantis/view.php?id=579 * src/raptor_iostream.c: Code tidy; use nobj for raptor_iostream_write_bytes() return value. @@ -1042,7 +1292,7 @@ expected length. Fixes Issue #0000575 - http://bugs.librdf.org/mantis/view.php?id=575 + https://bugs.librdf.org/mantis/view.php?id=575 * src/raptor_ntriples.c, src/raptor_term.c, tests/ntriples/Makefile.am, tests/ntriples/bug-574.nt, @@ -1051,7 +1301,7 @@ Replace on parsing. Fixes Issue #0000574 - http://bugs.librdf.org/mantis/view.php?id=574 + https://bugs.librdf.org/mantis/view.php?id=574 2014-10-20 Dave Beckett @@ -1204,7 +1454,7 @@ NUL char, count lengths. Fixes Issue #0000576 - http://bugs.librdf.org/mantis/view.php?id=576 + https://bugs.librdf.org/mantis/view.php?id=576 * src/raptor_turtle_writer.c: raptor_turtle_writer_quoted_counted_string handles a counted @@ -1218,7 +1468,7 @@ passed in len. Fixes Issue #0000576 - http://bugs.librdf.org/mantis/view.php?id=576 + https://bugs.librdf.org/mantis/view.php?id=576 * src/raptor_uri.c: Do not assume NUL terminated string in @@ -1228,7 +1478,7 @@ fwrite to emit counted URI string to debug file handler. Fixes Issue #0000576 - http://bugs.librdf.org/mantis/view.php?id=576 + https://bugs.librdf.org/mantis/view.php?id=576 * src/raptor_internal.h, src/turtle_parser.y: Add RAPTOR_DEBUG_FH define internally diff --git a/INSTALL.html b/INSTALL.html index b0a3a4fc..31fa35dd 100644 --- a/INSTALL.html +++ b/INSTALL.html @@ -375,7 +375,7 @@ or read the HTML version in docs/rapper.html or on the
-

Copyright 2000-2021 Dave Beckett
Copyright 2000-2005 University of Bristol

+

Copyright 2000-2023 Dave Beckett
Copyright 2000-2005 University of Bristol

diff --git a/LICENSE.html b/LICENSE.html index 27e9ef26..3d000a1a 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -23,7 +23,7 @@

-Copyright (C) 2000-2021 Dave Beckett
+Copyright (C) 2000-2023 Dave Beckett
Copyright (C) 2000-2005 University of Bristol. All Rights Reserved.

@@ -68,7 +68,7 @@ All Rights Reserved.

- Copyright (C) 2000-2021 Dave Beckett
+ Copyright (C) 2000-2023 Dave Beckett
Copyright (C) 2000-2005 University of Bristol.

@@ -93,7 +93,7 @@ All Rights Reserved.
-

Copyright (C) 2000-2021 Dave Beckett
Copyright (C) 2000-2005 University of Bristol

+

Copyright (C) 2000-2023 Dave Beckett
Copyright (C) 2000-2005 University of Bristol

diff --git a/NEWS.html b/NEWS.html index 3430fbb1..5c367ce5 100644 --- a/NEWS.html +++ b/NEWS.html @@ -8,10 +8,7 @@

Raptor RDF Syntax Library - News

-

2021-XX-XX Raptor2 Version 2.0.16 Released

- -

Not yet released. -

+

2023-03-01 Raptor2 Version 2.0.16 Released

Fixes CVE-2017-18926
@@ -31,13 +28,13 @@ for the full details of the changes.

Made several fixes to Turtle / N-Triples family of parsers and serializers
Added utility functions for re-entrant sorting of objects and sequences.
Made other fixes and improvements including fixing reported issues: -0000574, -0000575, -0000576, -0000577, -0000579, -0000581 and -0000584. +0000574, +0000575, +0000576, +0000577, +0000579, +0000581 and +0000584.

See the Raptor2 2.0.15 Release Notes @@ -59,8 +56,8 @@ for the full details of the changes.

2013-01-29 Raptor2 Version 2.0.13 Released

Fix configure not finding curl when curl-config --cflags is empty
-Fixed reported issue: -0000562. +Fixed reported issue: +0000562.

See the Raptor2 2.0.13 Release Notes @@ -83,9 +80,9 @@ for the full details of the changes.

Completed support for RDF 1.1 N-Triples (aka N-Triples 2013)
Added a few new API calls
Made several build, portability and configuration improvements
-Fixed reported issues: -0000554 and -0000556. +Fixed reported issues: +0000554 and +0000556.

See the Raptor2 2.0.11 Release Notes @@ -99,11 +96,11 @@ Completed support for Tu Added support for N-Triples W3C Working Group Note 09 April 2013 (N-Triples 2013)
Added a few new Turtle and N-Triples support functions
Update configure to better handle mixed pkg-config settings
-Fixed reported issues: -0000532, -0000535, -0000545 and -0000548 +Fixed reported issues: +0000532, +0000535, +0000545 and +0000548

See the Raptor2 2.0.10 Release Notes @@ -116,12 +113,12 @@ for the full details of the changes.

Added full parsing and serializing support for Turtle Terse RDF Triple Language W3C Candidate Recommendation 19 February 2013
Added CMake build framework for building Raptor on Microsoft (Daniel Richard G.)
Made a few minor fixes and improvements
-Fixed reported issues: -0000499, -0000508, -0000520, -0000521 and -0000526 +Fixed reported issues: +0000499, +0000508, +0000520, +0000521 and +0000526

See the Raptor2 2.0.9 Release Notes @@ -134,11 +131,11 @@ for the full details of the changes.

Added support for RDFa 1.1 via updated librdfa
Multiple portability fixes for Windows and Solarises. (Daniel Richard G.)
Multiple minor fixes and improvements
-Fixed reported issues: -0000381, -0000487, -0000505 and -0000507 +Fixed reported issues: +0000381, +0000487, +0000505 and +0000507

See the Raptor2 2.0.8 Release Notes @@ -152,9 +149,9 @@ Removed Expat support
Removed internal Unicode NFC code for better and optional ICU
Added options for denying file requests and XML entity loading
Added options for SSL certificate verifying
-Fixed reported issues: -0000448 and -0000469 +Fixed reported issues: +0000448 and +0000469

See the Raptor2 2.0.7 Release Notes @@ -181,11 +178,11 @@ Turtle serializer uses official text/turtle mime type
Added some additional UTF-8 and snprintf utility functions
No longer needs math functions trunc, lround and round.
Several internal code style fixes and cleanups
-Fixed reported issues: -0000465, -0000476, -0000479 and -0000481. +Fixed reported issues: +0000465, +0000476, +0000479 and +0000481.

See the Raptor2 2.0.5 Release Notes @@ -198,13 +195,13 @@ for the full details of the changes.

Support libcurl 7.21.7 that removed the curl/types.h header
TRiG parser now supports the optional ':' in 'uri : { }' syntax
WWW module now supports setting SSL client side certificates
-Fixed reported issues: -0000308, -0000449, -0000451, -0000455, -0000456 and -0000457 +Fixed reported issues: +0000308, +0000449, +0000451, +0000455, +0000456 and +0000457

@@ -217,8 +214,8 @@ for the full details of the changes.

Added a raptor2.h header
Turtle / TRiG parser improvements for larger documents
Fixes from LLVM clang static code analyzer
-Fixed reported issues: -0000437. +Fixed reported issues: +0000437.

See the Raptor2 2.0.3 Release Notes @@ -241,8 +238,8 @@ checking bug in raptor_new_world()
Some minor fixes:
The N-Quads serializer was fixed to output the graph name correctly
The RDFa parser built with librdfa can now be linked with the standard librdfa
-Fixed reported issues: -0000416. +Fixed reported issues: +0000416.

See the Raptor 2.0.1 Release Notes @@ -253,8 +250,8 @@ for the full details of the changes.

Raptor 2 final release
Some minor API changes since the last beta.
-Fixed reported issue: -0000405. +Fixed reported issue: +0000405.

The Raptor 2 API reference manual @@ -279,7 +276,7 @@ Constructors now validate the world pointer is from Raptor V2
Added an N-Quads parser
Added and removed a few API calls
Fixed a few bugs including reported issue -0000402 +0000402

The Raptor 2 API reference manual @@ -309,13 +306,13 @@ Added serializers for HTML 'html' and N-Quads 'nquads'.
Added parser 'json' for JSON-Resource centric and JSON-Triples.
Switched to GIT version control hosted by GitHub.
Added memory-based AVL-Tree to the public API.
-Fixed reported issues: -0000357, -0000361, -0000369, -0000370, -0000373 and -0000379 +Fixed reported issues: +0000357, +0000361, +0000369, +0000370, +0000373 and +0000379

The Raptor 2 API reference manual @@ -338,13 +335,13 @@ RDFa parser buffer management problems were fixed
Turtle parser and serializer now use QNames correctly against specification
RDF/XML parser now resets correctly to detect duplicate rdf:IDs
Made a few other minor bug and build fixes
-Fixed reported issues: -0000318, -0000319, -0000326, -0000331, -0000332 and -0000337 +Fixed reported issues: +0000318, +0000319, +0000326, +0000331, +0000332 and +0000337

See the Raptor 1.4.21 Release Notes @@ -360,11 +357,11 @@ Fix a crash when the GRDDL parser reported errors
Enable large file support for 32-bit systems
Several resilience improvements by Lauri Aalto
Other minor portability and bug fixes
-Fixed reported issues: -0000306 -0000307 -0000310 -and 0000312. +Fixed reported issues: +0000306 +0000307 +0000310 +and 0000312.

See the Raptor 1.4.20 Release Notes @@ -380,7 +377,7 @@ Improved the use and configuration of static libxml functions for better compati Several Win32 portability fixes - Lou Sakey
Many internal changes for upcoming Raptor V2 - primarily by Lauri Aalto
Many other fixes and resilience improvements.
-Fixed reported issues: 0000259, 0000262, 0000263, 0000266, 0000269, 0000270, 0000276, 0000277, 0000287, 0000288, 0000289, 0000290, 0000293, 0000296, 0000299 and 0000303. +Fixed reported issues: 0000259, 0000262, 0000263, 0000266, 0000269, 0000270, 0000276, 0000277, 0000287, 0000288, 0000289, 0000290, 0000293, 0000296, 0000299 and 0000303.

WARNING: FUTURE ABI and API CHANGES. The next @@ -401,7 +398,7 @@ Added an Atom 1.0 (RFC 4287) s Improved RSS 1.0 serializer functionality and resilience.
Added new API methods for qname, serializer, sequence and XML writer classes.
Many other fixes and resilience improvements.
-Fixed reported issues: 0000186 and 0000255. +Fixed reported issues: 0000186 and 0000255.

See the Raptor 1.4.18 Release Notes @@ -418,7 +415,7 @@ Added a new error handling structure
Made the I/O Stream class support reading
Added several new API methods.
Made several fixes, portability and resilience improvements.
-Fixed reported issues: 0000252 and 0000245. +Fixed reported issues: 0000252 and 0000245.

See the Raptor 1.4.17 Release Notes @@ -432,7 +429,7 @@ for the full details of the changes.

Turtle and RDF/XML serializers had performance improvements for large graphs.
Added a TRiG Parser based on Turtle with named graph support.
Several other API changes, fixed and improvements were made.
-Fixed reported issues: 0000188, 0000192, 0000194, 0000195, 0000207, 0000210, 0000214, 0000216, 0000217, 0000232, 0000237, 0000238 and 0000239
+Fixed reported issues: 0000188, 0000192, 0000194, 0000195, 0000207, 0000210, 0000214, 0000216, 0000217, 0000232, 0000237, 0000238 and 0000239
Many other fixes and improvements.

@@ -446,7 +443,7 @@ for the full details of the changes.

GRDDL parser substantially updated to support the GRDDL W3C Working Draft 2 March 2007
Errors for XML parsing and URI 404s are reported much better
-Fixed reported issues: 0000174, 0000177, 0000178, 0000180
+Fixed reported issues: 0000174, 0000177, 0000178, 0000180
Many other minor fixes and improvements.

@@ -463,7 +460,7 @@ New GraphViz DOT format serializer by Evan Nemerson.
GRDDL parser now does namespace and profile URI recursion and has other improvements and fixes.
-Fixed reported issues: 0000032, 0000141, 0000143, 0000148, 0000155 and 0000157
+Fixed reported issues: 0000032, 0000141, 0000143, 0000148, 0000155 and 0000157
Many other fixes and improvements.

@@ -474,7 +471,7 @@ for the full details of the changes.

2006-10-22 Raptor Version 1.4.13 Released

Fixed a memory leak in reusing the XML writer
-Fixed reported issues: 0000134
+Fixed reported issues: 0000134
Minor updates and fixes to tutorial, configuration and build

@@ -499,7 +496,7 @@ Added network request filtering for parsers
Improved the GRDDL parser to read Embedded RDF and HCalendar
The Guess parser can now be reused to do multiple guesses
The RSS 1.0 Serializer now works again
-Fixed reported issues: 0000014, 0000041, 0000089, 0000091 , 0000110 and 0000112
+Fixed reported issues: 0000014, 0000041, 0000089, 0000091 , 0000110 and 0000112
Made several other changes, fixes and improvements.

@@ -915,7 +912,7 @@ Added better XML parser auto-detection for various expats and libxml
-

Copyright (C) 2001-2021 Dave Beckett
Copyright (C) 2001-2005 University of Bristol

+

Copyright (C) 2001-2023 Dave Beckett
Copyright (C) 2001-2005 University of Bristol

diff --git a/RELEASE.html b/RELEASE.html index c6013555..6ce31164 100644 --- a/RELEASE.html +++ b/RELEASE.html @@ -11,12 +11,25 @@

Raptor2 2.0.16 changes

-

Not yet released. -

+

Release because ... it's been a while

CVE-2017-18926 fixed in commit 590681e546cd9aa18d57dc2ea1858cb734a3863f

+

CVE-2020-25713 +fixed in commit 4f5dbbffcc1c6cf0398bd03450453289a0979dea

+ +

Issues Fixed:

+
    +
  • 0000600: Can't compile on Cygwin: sort_r.h "Cannot detect operating system"
  • +
  • 0000606: "JSON" format outputs invalid Unicode escapes
  • +
  • 0000617: heap buffer overflow in raptor_qname_format_as_xml
  • +
  • 0000618: heap buffer overflow in raptor_xml_writer_start_element_common
  • +
  • 0000650: Out of bounds read leads to segfault in raptor_xml_writer_start_element_common
  • +
  • 0000652: Manpage for the rapper utility describes the wrong Atom version
  • +
+ +

Parser changes

The Turtle parser was improved to process input in chunks, rather @@ -27,56 +40,110 @@ splits the inputs after the end of a turtle "sentence" that ends in a pruning during serializing and addition of turtle serializer flush implementation. -This improvment across multiple patches was contributed by Sebastian -Freundt. Thanks

+This improvment across multiple patches was contributed by +Sebastian Freundt. Thanks +Pull Request #37 +Pull Request #38 +

Turtle parser improvements for Bison 3+ and removing deprecated or -older style directives. Pull request #43 by Akim Demaille. Thanks +older style directives. +Thanks to fix from Akim Demaille +Pull Request #43 +

+ +

Turtle parser fixes for cleaning up va_arg on failure paths. +[coverity CID 343351]

+

grddl parser: fix leak on failure paths of WWW model methods +[coverity CID 343353] +

+ +

Serializer changes

Added a serializer for the mKR (my Knowledge Representation) language with the name mkr Patch developed by Richard H. McCullough based on the Turtle serializer. Thanks. +Pull Request #25

XML writer calculate max nspace declarations correctly. Fixes Issues -#0000617 +#0000617 and -#0000618 +#0000618

JSON writer changed to write UTF-8 for JSON literals Add RAPTOR_ESCAPED_WRITE_BITFLAG_UTF8 to RAPTOR_ESCAPED_WRITE_JSON_LITERAL Fixes Issue -#0000606 +#0000606

+

rdfxmla serializer was fixed to handle leak of iter object on some +failure pathes. [coverity CID 343354] [coverity CID 343358] +

Fix for RSS 1.0 serializing default namespaces.

- -

Other changes

-

Handle deleting empty avltree. Fixes invalid pointer reference -reported by Li Qiang via email. Thanks. +

Writer changes

+ +

XML Writer: compare namespace declarations correctly. Applied a patch from +0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1 +that fixes +Issue #0000650 +which overwrote heap during XML writing in parse type literal +content. This was detected with clang asan. Thanks to fix from Michael Stahl +/ mst2.

-

Several minor fixes and workarounds for clang ASAN warnings or -false warnings - not able to understand raptor's refernece model.

+

Build and portability fixes

-

Support newer ICU UC version (>=56) for newer NFC check -interface unorm2_quickCheck()..

+

CMake fixes

+
    +
  • Fix cmake builds for time.h check change, generated pc file. +Thanks to fix from Artturin. +Pull Request #52 +
  • -

    Use only pkgconfig for libxslt and ICU UC. Patches from Hugh -McMaster. Thanks. +

  • Multiple cmake build fixes. Thanks to multiple changes from +mathvich. +Pull Request #50 +
  • + +
  • Multiple fixes for Appveyor's Windows build using CMake +Thanks to fix from 0u812. +
  • + +
  • Multiple fixes for Cmake build system to allow building from +source including running flex, bison and running the tests. +Thanks to fix from 0u812. +
  • + +
  • Made Raptor build again with CMake under Windows via CI as a +service Appveyor. The resulting binaries and libraries were not +tested.
  • +
+ +

Remove and fix obsolete autoconf: AC_PROG_LEX AC_HEADER_TIME AC_HEADER_STDC.

-

Updated Travis configuration to try builds across a wider range of -compilers and with clang ASAN enabled.

+

Update bison check to find first new enough GNU bison

+ +

Fix configure.ac -Wimplicit-function-declaration in +HAVE___FUNCTION__ test to provide Clang 16 support. Fix +from Sam James, thanks. +

+ +

Support newer ICU UC version (>=56) for newer NFC check +interface unorm2_quickCheck()..

+ +

Several minor fixes and workarounds for clang ASAN warnings or +false warnings - not able to understand raptor's reference model.

Updated fix-flex.pl script for newer flex naming conventions.

@@ -87,32 +154,21 @@ error message callbacks in turtle and grddl parsers

Later, updated to make bison 3.4 the minimum.

Update turtle parser and support scripts to work with Bison 3.0.5 -Patch contributed by Adam Novak. Thanks.

- -

Multiple fixes for Appveyor's Windows build using CMake -Thanks to 0u812. +Patch contributed by Adam Novak. Thanks. +Pull Request #39

-

Multiple fixes for Cmake build system to allow building from -source including running flex, bison and running the tests. -Thanks to 0u812. -

- -

Made Raptor build again with CMake under Windows via CI as a -service Appveyor. The resulting binaries and libraries were not -tested.

-

Fix GNUInstallDirs for install paths to be able to install libraptor2.a and raptor2.pc to a specific directory when -cross-compiling. Thanks to -Eric Le Lay.

+cross-compiling. Thanks to fix from +Eric Le Lay. +Pull Request #36 +

Made some code changes to quiet GCC extra warnings.

Portability fixes for OpenBSD

-

Fixed a few resource leaks on error found by Coverity.

-

Some portability for building under cygwin by Richard H. McCullough while developing the mkr serializer.

@@ -125,15 +181,51 @@ Thanks to fix by philjohn with yocto. Thanks to fix by Andreas Müller.

+

Use only pkgconfig for libxslt and ICU UC. Patches from Hugh +McMaster. Thanks. +

+ +

Updated Travis configuration to try builds across a wider range of +compilers and with clang ASAN enabled.

+ + + +

Other changes

+ +

Handle deleting empty avltree. Fixes invalid pointer reference +reported by Li Qiang via email. Thanks. +

+

Change rapper(1) utility to count in longs instead of ints. Because: billions and billions of triples. Thanks to patch -from Jerven Bolleman.

p> +from Jerven Bolleman. +

-

Accept cygwin as a Linux-like. Fixes -Issue #00000600. +

Accept cygwin as a Linux-like. +Fixes Issue #0000600.

- +

Mention Atom 0.3 in docs and manual page +Fixes Issue #0000652. +

+ +

Check curl_easy_setopt() return values for errors In +several places check for curl_easy_setopt() erorr +returns and fail. [coverity CID 343360] +

+ +

Fixed internal ICU string NFC check to convert to UTF-16 first +before trying to do a NFC normalization check. This allows returning +an error response. +

+ +

raptor_uri_counted_filename_to_uri_string() fix to +copy NUL when copying the file://code prefix. Coverity +false positive since the following lines of code always add more +characters and a NUL. "Fixes" [Coverity CID 353858] +

+ +

Raptor2 2.0.15 changes

@@ -146,13 +238,13 @@ sequences and a few other useful methods.

Issues Fixed:

    -
  • 0000574: Language tags with underscore
  • -
  • 0000575: Wrong API or wrong API documentation
  • -
  • 0000576: Wrong assert for a counted string being nul terminated
  • -
  • 0000577: iri parsing does not conform to REC-n-quads-20140225
  • -
  • 0000579: raptor_world_generate_bnodeid accepts world not parser
  • -
  • 0000581: My patch for parser and serializers count
  • -
  • 0000584: raptor fails to parse trig files with dos line endings
  • +
  • 0000574: Language tags with underscore
  • +
  • 0000575: Wrong API or wrong API documentation
  • +
  • 0000576: Wrong assert for a counted string being nul terminated
  • +
  • 0000577: iri parsing does not conform to REC-n-quads-20140225
  • +
  • 0000579: raptor_world_generate_bnodeid accepts world not parser
  • +
  • 0000581: My patch for parser and serializers count
  • +
  • 0000584: raptor fails to parse trig files with dos line endings
@@ -164,18 +256,18 @@ via gcc5 warning.

The TRiG parser now accepts \r newlines between the graph name and the following '{'. -Fixes Issue #0000584 +Fixes Issue #0000584

Turtle, TRiG, N-Triples and N-Quads parsers now check escapes correctly for URI strings. \t \b \n \r \f are forbidden. Check that raw ' ' or \u0020, \u003C or \u003E are also not accepted. -Fixes Issue #0000577 +Fixes Issue #0000577

N-Triples / N-Quads parsers nwo accept '_' as an alias for '-' in lang strings. '_' is not legal. -Fixes Issue #0000574 +Fixes Issue #0000574

Updated RDFa parser (librdfa) to support full URLs for @@ -196,7 +288,7 @@ from Richard H. McCullough. Thanks!

raptor_iostream_decimal_write() and raptor_iostream_hexadecimal_write now return non-0 if they do not succeed in writing successfully. -Fixes Issue #0000575 +Fixes Issue #0000575

Term class changes

@@ -208,7 +300,7 @@ the same as a NULL blank node ID argument.

Fixed raptor_uri_counted_filename_to_uri_string() to use the passed in len, not look for end NUL char and count lengths. -Fixes Issue #0000576. +Fixes Issue #0000576.

raptor_new_uri_from_counted_string() no longer @@ -223,7 +315,7 @@ output buffer is big enough.

Fixed raptor_turtle_writer_quoted_counted_string() to use the passed in length, drop the strlen() call and use the length internally. -Fixes Issue #0000576. +Fixes Issue #0000576.

World class changes

@@ -231,7 +323,7 @@ Fixes Issue #0000576

Added raptor_world_get_parsers_count() and raptor_world_get_serializers_count() with patch from Victor Porton. Thanks! -Fixes Issue #0000581.

+Fixes Issue #0000581.

Other Changes

@@ -289,13 +381,13 @@ code that clang and coverity complain about.

Issues Fixed:

    -
  • 0000562: N-Quads parsing of URIs with ' fails
  • +
  • 0000562: N-Quads parsing of URIs with ' fails

Parser changes

The N-Triples / N-Quads parser was updated to allow ' in URIs. -Fixes Issue #0000562. +Fixes Issue #0000562.

Configuration changes

@@ -358,8 +450,8 @@ strings created by raptor_term_to_counted_string() and

Issues Fixed:

    -
  • 0000556: Problem with relative URI in rdf:about, rdf:resource etc.
  • -
  • 0000554: RDF/XML serializer does not canonicalize attribute order in XMLLiterals
  • +
  • 0000556: Problem with relative URI in rdf:about, rdf:resource etc.
  • +
  • 0000554: RDF/XML serializer does not canonicalize attribute order in XMLLiterals

Parser changes

@@ -378,7 +470,7 @@ Many internal changes were also made.

RDF/XML parser fixed the XML Canonicalization so that it writes the XML attributes in sorted order. Fixes -Issue #0000554. +Issue #0000554.

URI class changes

@@ -417,10 +509,10 @@ sanitizing.

Issues Fixed:

    -
  • 0000532: configure.ac: required file `src/raptor_config.h.in' not found
  • -
  • 0000535: configure accepts bogus values for --with-xml2-config
  • -
  • 0000545: Reopen issue 503
  • -
  • 0000548: xml:lang inside rdf:parseType="Literal" are removed in parsed output
  • +
  • 0000532: configure.ac: required file `src/raptor_config.h.in' not found
  • +
  • 0000535: configure accepts bogus values for --with-xml2-config
  • +
  • 0000545: Reopen issue 503
  • +
  • 0000548: xml:lang inside rdf:parseType="Literal" are removed in parsed output

Parser changes

@@ -480,7 +572,7 @@ trying pkg-config unless --with-curl-config=no

configure now dies if xml2-config or xslt-config point at non executable files. Patch from Michael Stahl - thanks. -Fixes Issue #0000534 +Fixes Issue #0000534

configure now adds curl or libxml pkg-config requires @@ -489,7 +581,7 @@ dependency on pkg-config files if they are not needed.

Updated autogen.sh and code to handle variations of header macro. -Fixes Issue #0000532 +Fixes Issue #0000532

@@ -498,11 +590,11 @@ Fixes Issue #0000532

Issues Fixed:

    -
  • 0000499: Turtle parser fails to correctly parse valid syntax
  • -
  • 0000508: Raptor objects to possibly valid Turtle syntax
  • -
  • 0000520: compilation failure
  • -
  • 0000521: Python RDF 1.0.14.1 segfault when one tries to parse xhtml+rdf using the RDFa parser
  • -
  • 0000526: Document how to find gtkdocize in INSTALL.html
  • +
  • 0000499: Turtle parser fails to correctly parse valid syntax
  • +
  • 0000508: Raptor objects to possibly valid Turtle syntax
  • +
  • 0000520: compilation failure
  • +
  • 0000521: Python RDF 1.0.14.1 segfault when one tries to parse xhtml+rdf using the RDFa parser
  • +
  • 0000526: Document how to find gtkdocize in INSTALL.html
@@ -510,7 +602,7 @@ Fixes Issue #0000532

RDFa parser: Handle non-namespaced elements without crash in RDFa. -Fixes Issue #0000521 +Fixes Issue #0000521

Turtle Parser: Added full support for @@ -566,7 +658,7 @@ automake can run.

present in older libxml2 versions. The entities checked field was added 2006-10-10 in libxml2 GIT commit a37a6ad91a61d168ecc4b29263def3363fff4da6and released in libxml2 2.6.27 on 2006-10-25. -Fixes Issue #0000520 +Fixes Issue #0000520

@@ -588,10 +680,10 @@ f94fa561db05b21132b14a2b72f05b77e666c252 on Wed Apr 28 21:31:54 2010

Issues Fixed:

    -
  • 0000381: Raptor incorrectly serializes turtle lists when list nodes are URIs.
  • -
  • 0000487: Does raptor_world_guess_parser_name [librdf_parser_guess_name2] ever return NULL?
  • -
  • 0000505: Parsing certain escaped unicode strings in Turtle cases an error
  • -
  • 0000507: Turtle parse error causes fatal error
  • +
  • 0000381: Raptor incorrectly serializes turtle lists when list nodes are URIs.
  • +
  • 0000487: Does raptor_world_guess_parser_name [librdf_parser_guess_name2] ever return NULL?
  • +
  • 0000505: Parsing certain escaped unicode strings in Turtle cases an error
  • +
  • 0000507: Turtle parse error causes fatal error

Parser class changes

@@ -600,7 +692,7 @@ f94fa561db05b21132b14a2b72f05b77e666c252 on Wed Apr 28 21:31:54 2010 raptor_world_guess_parser_name() now returns NULL failure when the guess is very poor, rather just return the first bad result. Fixes -Issue #0000487 +Issue #0000487 which was reported in Redland librdf but is implemented here.

@@ -632,7 +724,7 @@ leaks / double frees. problems. When a Turtle qname cannot be found, a fatal error is no longer generated but a regular error message giving information on the qname that failed (usually due to unknown prefix). -Fixes Issue #0000507 +Fixes Issue #0000507

@@ -648,7 +740,7 @@ for undefined language (no xml:lang present).

Turtle: Do not emit a Turtle (...) collection if the list item is a URI. This fixes -Issue #0000381. +Issue #0000381.

@@ -665,7 +757,7 @@ string form of raptor_term_to_turtle_string. raptor_unicode_utf8_string_get_char() now allow reading / writing U+D800 to U+DFFF (UTF-16 surrogates). rather than returning failure. BOMs remain forbidden - definitely not UTF-8. -Fixes Issue #0000505 +Fixes Issue #0000505

@@ -756,8 +848,8 @@ or no arguments to read from stdin.

Issues Fixed:

    -
  • 0000448: Turtle parser does not return error status from turtle_parse_chunk()
  • -
  • 0000469: Allow rapper to bypass server SSL certs checks in libcurl
  • +
  • 0000448: Turtle parser does not return error status from turtle_parse_chunk()
  • +
  • 0000469: Allow rapper to bypass server SSL certs checks in libcurl

Removed Expat support since expat has not had a release in years @@ -806,7 +898,7 @@ enforcing of network, file and entity loading policy.

Turtle parser now returns parser errors to raptor_parse_chunk(). -Fixes Issue #0000488 +Fixes Issue #0000488

@@ -850,7 +942,7 @@ file that exists:

Added raptor_www_set_ssl_verify_options() to set SSL verify options. -Fixes Issue# 0000469. +Fixes Issue# 0000469.

The raptor_www_fetch() call now returns the status @@ -898,10 +990,10 @@ generate permuations:

Issues Fixed:

    -
  • 0000465: c99 snprintf usage
  • -
  • 0000476: Add Format URIs to raptor_syntax_descriptions
  • -
  • 0000479: raptor 2.0.4 : -i nquads fails to treat the context term as optional bugs.librdf.org
  • -
  • 0000481: Invalid unicode characters cause raptor to emit infinite output while converting n-quads to n-triples
  • +
  • 0000465: c99 snprintf usage
  • +
  • 0000476: Add Format URIs to raptor_syntax_descriptions
  • +
  • 0000479: raptor 2.0.4 : -i nquads fails to treat the context term as optional bugs.librdf.org
  • +
  • 0000481: Invalid unicode characters cause raptor to emit infinite output while converting n-quads to n-triples
@@ -917,7 +1009,7 @@ sheet URI.

N-Quads parser: Make context optional. (Lauri Aalto) Fixes -Issue #0000479. +Issue #0000479.
When guessing formats, make N-Quads always beat N-Triples since since now all ntriples parse fine with the nquads parser. (Lauri Aalto) @@ -943,7 +1035,7 @@ type in the syntax recognizing code. Do not generate infinite output when the input Unicode UTF-8 encoding is bad. -Fixes Issue #000481. +Fixes Issue #000481.

Unicode class changes

@@ -968,7 +1060,7 @@ of a UTF-8 string raptor_unicode_utf8_substr():

raptor_uri_string_to_relative_uri_string() now compares URI paths not files. (Joe Presbrey) -Fixes Issue #0000472 +Fixes Issue #0000472

@@ -1014,7 +1106,7 @@ convention.

raptor_locator_format() now picks a large enough buffer size if snprintf() is likely not portable, when HAVE_C99_VSNPRINTF is not defined. -Fixes Issue #0000465 +Fixes Issue #0000465

Internal code style changes for how allocation is done and casting @@ -1065,12 +1157,12 @@ potentially truncated to size of int.

Issues Fixed:

    -
  • 0000308: undefined reference to round and trunc while cross compiling for mipsel
  • -
  • 0000449: ntriples serializer and parser inconsistent w.r.t. _ in name tokens
  • -
  • 0000451: Incorrect qname definition in TRiG parser
  • -
  • 0000455: Incorrect AVL tree operations. [ with fix ]
  • -
  • 0000456: raptor-2.0.3 fails to build against yajl-2.0.2 API
  • -
  • 0000457: raptor-2.0.3 fails to build with curl-7.21.7
  • +
  • 0000308: undefined reference to round and trunc while cross compiling for mipsel
  • +
  • 0000449: ntriples serializer and parser inconsistent w.r.t. _ in name tokens
  • +
  • 0000451: Incorrect qname definition in TRiG parser
  • +
  • 0000455: Incorrect AVL tree operations. [ with fix ]
  • +
  • 0000456: raptor-2.0.3 fails to build against yajl-2.0.2 API
  • +
  • 0000457: raptor-2.0.3 fails to build with curl-7.21.7

Parser class changes

@@ -1179,7 +1271,7 @@ chunk of data and continue lexing later.

Fix value ownership fix graph name. -Fixes Issue #0000437 +Fixes Issue #0000437

Other Changes

@@ -1222,7 +1314,7 @@ checking bug in raptor_new_world()

The internal librdfa parser that uses Raptor internals now exports symbols prefixed with raptor_librdfa so that Raptor can be linked with the standard librdfa in applications without symbol clashes. -Fixes Issue #0000416 +Fixes Issue #0000416

Serializer class changes

@@ -1260,7 +1352,7 @@ working.

Fixed Issues:

    -
  • 0000405: RDFa parser does not handle base href with single quoted value
  • +
  • 0000405: RDFa parser does not handle base href with single quoted value
@@ -1369,7 +1461,7 @@ lengths are known and the same. Content-Location: header to get the base URI for content retrievals. This allows these base URIs to be used in parsing content retrived from URIs. -Fixes Issue #0000402 +Fixes Issue #0000402

@@ -1414,12 +1506,12 @@ the new APIs.

Fixed Issues:

    -
  • 0000357: raptor_term_as_string does not return N-Triples escaped string, although API says so
  • -
  • 0000361: HTML Table serializer
  • -
  • 0000369: Unescaped quotes in long literals (Turtle/N3) cause parser failure if at the end of the literal
  • -
  • 0000370: Odd behaviour regarding the parsing of Trig files
  • -
  • 0000373: Remove deprecated GTK symbols
  • -
  • 0000379: raptor libxslt security policy conflicts with apps that also use libxslt and set security policy
  • +
  • 0000357: raptor_term_as_string does not return N-Triples escaped string, although API says so
  • +
  • 0000361: HTML Table serializer
  • +
  • 0000369: Unescaped quotes in long literals (Turtle/N3) cause parser failure if at the end of the literal
  • +
  • 0000370: Odd behaviour regarding the parsing of Trig files
  • +
  • 0000373: Remove deprecated GTK symbols
  • +
  • 0000379: raptor libxslt security policy conflicts with apps that also use libxslt and set security policy
@@ -1665,7 +1757,7 @@ overridden with allows user code to disable raptor touching the security preferences entirely. Fixes -Issue #0000379 +Issue #0000379

@@ -1922,12 +2014,12 @@ is underway.

Fixed Issues:

    -
  • 0000318: Cannot end a Turtle literal with \\ inside triple-quotes
  • -
  • 0000319: ntriples parser does not register that it accepts ntriples mime type - text/plain
  • -
  • 0000326: Turtle parser allows '.' in qnames which is not-to-spec
  • -
  • 0000331: Turtle long literals with raw newlines do not count line numbers correctly
  • -
  • 0000332: RDFXML parser finds duplicates and misbehaves (when it shouldn't)
  • -
  • 0000337: raptor/turtle outputs invalid qnames which cause syntax errors on parsing
  • +
  • 0000318: Cannot end a Turtle literal with \\ inside triple-quotes
  • +
  • 0000319: ntriples parser does not register that it accepts ntriples mime type - text/plain
  • +
  • 0000326: Turtle parser allows '.' in qnames which is not-to-spec
  • +
  • 0000331: Turtle long literals with raw newlines do not count line numbers correctly
  • +
  • 0000332: RDFXML parser finds duplicates and misbehaves (when it shouldn't)
  • +
  • 0000337: raptor/turtle outputs invalid qnames which cause syntax errors on parsing

Parser changes

@@ -1981,10 +2073,10 @@ numbering.

Fixed Issues:

    -
  • 0000306: rapper doesn't handle datatype=""and xml:lang="" properly with RDFa
  • -
  • 0000307: configure fails at vnsprintf test when cross compiling
  • -
  • 0000310: Raptor does not like single character namespaces with RDFa
  • -
  • 0000312: Ununitialized pointer in example rdfserialize.c causes crash
  • +
  • 0000306: rapper doesn't handle datatype=""and xml:lang="" properly with RDFa
  • +
  • 0000307: configure fails at vnsprintf test when cross compiling
  • +
  • 0000310: Raptor does not like single character namespaces with RDFa
  • +
  • 0000312: Ununitialized pointer in example rdfserialize.c causes crash

Parser Changes

@@ -2002,9 +2094,9 @@ a438ce68a40e04b399ec2b2c613d0c867d9315c7
now moved to http://github.com/msporny/librdfa to fix handling single character namespaces -(Issue #0000310), +(Issue #0000310), empty datatype attribute and empty xml:lang attributes -(Issue #0000306) +(Issue #0000306)

Added three unapproved RDFa tests 0172, 0173 and 0174 to cover the @@ -2028,12 +2120,12 @@ O(log N) - from list to balanced tree.

If cross compiling, check for vsnprintf() C99 compatible at runtime by setting define CHECK_VSNPRINTF_RUNTIME during configuration. -Fixes Issue #0000307 +Fixes Issue #0000307

Use calloc() for allocating a raptor_statement in rdfserializer.c example code to properly initialise state. -Fixes Issue #0000312 +Fixes Issue #0000312

Use AC_SYS_LARGEFILE to get large file IO checks which @@ -2058,22 +2150,22 @@ with 1.9.x numbering.

Fixed Issues:

    -
  • 0000259: Fix NFC check for legal combiner sequence
  • -
  • 0000262: Error when raptor_new_uri() fails in Turtle parser
  • -
  • 0000263: Invalid turtle output syntax on empty integer/double/decimal literals
  • -
  • 0000266: Default/atom namespace in atom serializer output
  • -
  • 0000269: strstr is called in raptor_parse_chunk() on a buffer string, where it should be called on a null-terminating string.
  • -
  • 0000270: RSS serializer fixes for g++
  • -
  • 0000276: Fix raptor_sequence_set_at() when setting beyond end
  • -
  • 0000277: broken collection abbreviation in turtle serialization
  • -
  • 0000287: Fix raptor_sax2_parse_chunk() calling raptor_log_error_to_handlers() with expat
  • -
  • 0000288: raptor_get_feature function does not return feature value
  • -
  • 0000289: Fix RDFa parser problem when there is a subject and predicate specified on an element, but no child nodes for the object literal
  • -
  • 0000290: Fix performance problems when turtle parsing with lots of namespaces
  • -
  • 0000293: Fix RDF/XML Parser problem with legacy ordinal predicates
  • -
  • 0000296: Avoid calling xsltSetDefaultSecurityPrefs()
  • -
  • 0000299: Avoid calling xmlSetStructuredErrorFunc() and xmlSetGenericErrorFunc()
  • -
  • 0000303: rdfa parser does not parse content as RDFa which librdfa+expat alone handles
  • +
  • 0000259: Fix NFC check for legal combiner sequence
  • +
  • 0000262: Error when raptor_new_uri() fails in Turtle parser
  • +
  • 0000263: Invalid turtle output syntax on empty integer/double/decimal literals
  • +
  • 0000266: Default/atom namespace in atom serializer output
  • +
  • 0000269: strstr is called in raptor_parse_chunk() on a buffer string, where it should be called on a null-terminating string.
  • +
  • 0000270: RSS serializer fixes for g++
  • +
  • 0000276: Fix raptor_sequence_set_at() when setting beyond end
  • +
  • 0000277: broken collection abbreviation in turtle serialization
  • +
  • 0000287: Fix raptor_sax2_parse_chunk() calling raptor_log_error_to_handlers() with expat
  • +
  • 0000288: raptor_get_feature function does not return feature value
  • +
  • 0000289: Fix RDFa parser problem when there is a subject and predicate specified on an element, but no child nodes for the object literal
  • +
  • 0000290: Fix performance problems when turtle parsing with lots of namespaces
  • +
  • 0000293: Fix RDF/XML Parser problem with legacy ordinal predicates
  • +
  • 0000296: Avoid calling xsltSetDefaultSecurityPrefs()
  • +
  • 0000299: Avoid calling xmlSetStructuredErrorFunc() and xmlSetGenericErrorFunc()
  • +
  • 0000303: rdfa parser does not parse content as RDFa which librdfa+expat alone handles
@@ -2081,7 +2173,7 @@ with 1.9.x numbering.

raptor_get_feature() now returns the integer value rather than just 1 or 0.
-Issue #0000288 +Issue #0000288

Guess parser: return name of guessed parser not 'guess'. @@ -2089,7 +2181,7 @@ just 1 or 0.

N-Triples parser: Produce error messages when raptor_new_uri() fails.
-Issue #0000262 +Issue #0000262

RDFa parser: @@ -2097,7 +2189,7 @@ Fix problem when there is a subject and predicate specified on an element, but no child nodes for the object literal using latest librdfa GIT source with head 2ddcb3f9e010d0b3d9ee546e807539be5da1b14a
-Issue #0000289 +Issue #0000289

RSS tag soup parser: @@ -2111,7 +2203,7 @@ Added itunes namespace and container.

RDF/XML Parser: Adjust predicate_type when removing ordinal identifier type from predicate.
-Issue #0000293 +Issue #0000293

@@ -2128,14 +2220,14 @@ consumed by strtol() (for integers) or strtod() (for decimals and doubles). Otherwise produce a warning and emit literal in the normal "value"^^<datatype_uri> format.
-Issue #0000263
+Issue #0000263
Fix broken collection abbreviation
-Issue #0000277
+Issue #0000277

RSS serializer: Fixes for g++
-Issue #0000270 +Issue #0000270
Added a new serializer feature RAPTOR_FEATURE_PREFIX_ELEMENTS (short name @@ -2156,7 +2248,7 @@ optionally but will do a save/restore of the existing functions. This protection is enabled by the new API call raptor_set_libxml_flags() to set the flags from values in enum raptor_libxml_flags.
-Issue #0000299 +Issue #0000299

Use context-specific libslt security configuration to avoid @@ -2164,7 +2256,7 @@ calling generic call xsltSetDefaultSecurityPrefs() which can be a problem when libxslt is shared with other code in memory. Allow the user to set the policy for raptor globally with new API function raptor_set_libxslt_security_preferences().
-Issue #0000296 +Issue #0000296

Make libxml SAX2 structured errors register parser-specific @@ -2175,7 +2267,7 @@ method above can still enable registerding the global error handlers.

In raptor_sax2_parse_chunk() fixed calls to raptor_log_error_to_handlers() when built with expat.
-Issue #0000287 +Issue #0000287

@@ -2191,7 +2283,7 @@ violation on windows. contract: provide "size" consecutive items in "sequence" starting from "start" even when setting items more than +1 offset beyond the end of sequence.
-Issue #0000276 +Issue #0000276 @@ -2213,12 +2305,12 @@ for RDF/XML, Turtle, etc.

Use a DJ Bernstein hash to replace a linked list for storing a stack of namespaces. This makes turtle parsing with lots of namespaces (100s) much faster. Based on the initial patch in the bug.
-Issue #0000290 +Issue #0000290

Use new internal raptor_memstr() function to compare a string against a buffer that may not be NUL terminated.
-Issue #0000269 +Issue #0000269

raptor_error_handlers: API structure gains world @@ -2496,8 +2588,8 @@ for future replacing of raptor_statement

Fixed Issues:

    -
  • 0000186: Add RDFa support to Raptor
  • -
  • 0000255: rss-tag-soup serializer does not generate namespaces so re-serializing in rdf/xml looks wierd for atom
  • +
  • 0000186: Add RDFa support to Raptor
  • +
  • 0000255: rss-tag-soup serializer does not generate namespaces so re-serializing in rdf/xml looks wierd for atom
@@ -2665,8 +2757,8 @@ Added an initialization function for the structure,

Fixed Issues:

    -
  • 0000252: Allow controlling of cache headers in Raptor
  • -
  • 0000245: Extra classes added to an OWL object
  • +
  • 0000252: Allow controlling of cache headers in Raptor
  • +
  • 0000245: Extra classes added to an OWL object
@@ -2748,7 +2840,7 @@ ordering between raptor_statement objects. (Dave B)

Added new parser features to control HTTP headers in web requests (Dave B, based on a patch in the bug):
Also never Pragma: header with libcurl ever.
-Fixes Issue #0000252 +Fixes Issue #0000252

  • RAPTOR_FEATURE_WWW_HTTP_CACHE_CONTROL to control @@ -2829,7 +2921,7 @@ changes the previous syntax output order but has no semantic difference. (Dave B)
  • Use the AVL Tree to remove duplicate triples. (Dave B)
    -Fixes Issue #0000245 +Fixes Issue #0000245
@@ -2853,7 +2945,7 @@ to match Turtle latest spec. (Dave B)

Added new method raptor_www_set_http_cache_control() to set the HTTP Cache-Control: header in requests. (Dave B, based on a patch in the bug)
-Fixes Issue #0000252 +Fixes Issue #0000252

@@ -2955,19 +3047,19 @@ for large graphs.

Fixed Issues:

    -
  • 0000188: Wrong RAPTOR_API definition for mingw
  • -
  • 0000192: raptor_uri_filename_to_uri_string() - getcwd() loop error
  • -
  • 0000194: parser and serializer don't recognize the same mime types
  • -
  • 0000195: Compile error in raptor_serialize.c debug code
  • -
  • 0000207: RDF file can be parsed, but not then serialised.
  • -
  • 0000210: RAPTOR_FEATURE_WRITER_XML_DECLARATION broken in Ruby
  • -
  • 0000214: Empty rdf:about, plus base-uri, produces incorrect turtle output
  • -
  • 0000216: flickrdf segfaults at raptor_serialize_end!
  • -
  • 0000217: flickrdf segfaults at raptor_serialize_end!
  • -
  • 0000232: libraptor does not correctly free up libxml error handler, causing crashes in subsequent calls to libxml error handlers
  • -
  • 0000237: raptor_sequence robustness: item ownership on insert error
  • -
  • 0000238: GRDDL parser in SVN overwrites blank nodes when merging graphs
  • -
  • 0000239: GRDDL parser in SVN returns 60 less triples with http://www.w3.org/
  • +
  • 0000188: Wrong RAPTOR_API definition for mingw
  • +
  • 0000192: raptor_uri_filename_to_uri_string() - getcwd() loop error
  • +
  • 0000194: parser and serializer don't recognize the same mime types
  • +
  • 0000195: Compile error in raptor_serialize.c debug code
  • +
  • 0000207: RDF file can be parsed, but not then serialised.
  • +
  • 0000210: RAPTOR_FEATURE_WRITER_XML_DECLARATION broken in Ruby
  • +
  • 0000214: Empty rdf:about, plus base-uri, produces incorrect turtle output
  • +
  • 0000216: flickrdf segfaults at raptor_serialize_end!
  • +
  • 0000217: flickrdf segfaults at raptor_serialize_end!
  • +
  • 0000232: libraptor does not correctly free up libxml error handler, causing crashes in subsequent calls to libxml error handlers
  • +
  • 0000237: raptor_sequence robustness: item ownership on insert error
  • +
  • 0000238: GRDDL parser in SVN overwrites blank nodes when merging graphs
  • +
  • 0000239: GRDDL parser in SVN returns 60 less triples with http://www.w3.org/
@@ -3198,10 +3290,10 @@ rather than the RSS Tag Soup parser.

Fixed Issues:

    -
  • #0000174: Serializing to rdfxml* with a base_uri doesn't set the xml:base attribute, but does truncate rdf:about and rdf:resource values
  • -
  • #0000177: Some URI references mis-resolved
  • -
  • #0000178: No errors from accessing 404 URIs
  • -
  • #0000180: messages garble output to stdout
  • +
  • #0000174: Serializing to rdfxml* with a base_uri doesn't set the xml:base attribute, but does truncate rdf:about and rdf:resource values
  • +
  • #0000177: Some URI references mis-resolved
  • +
  • #0000178: No errors from accessing 404 URIs
  • +
  • #0000180: messages garble output to stdout
@@ -3310,12 +3402,12 @@ has other improvements and fixes.

Fixed Issues:

    -
  • #0000032: GRDDL indirection feature request
  • -
  • #0000141: Crash when GRDDL parser is used with a used-generated blank node ID prefix.
  • -
  • #0000143: Crash when GRDDL parser fails to retrieve URI.
  • -
  • #0000148: A public function to generate a blank ID would be nice though.
  • -
  • #0000155: entity processing in literal property elements (with libxml)
  • -
  • #0000157: Crash when RDF/XML Abbrev serializer sees a rdf:type predicate with a literal object.
  • +
  • #0000032: GRDDL indirection feature request
  • +
  • #0000141: Crash when GRDDL parser is used with a used-generated blank node ID prefix.
  • +
  • #0000143: Crash when GRDDL parser fails to retrieve URI.
  • +
  • #0000148: A public function to generate a blank ID would be nice though.
  • +
  • #0000155: entity processing in literal property elements (with libxml)
  • +
  • #0000157: Crash when RDF/XML Abbrev serializer sees a rdf:type predicate with a literal object.

Configuration Changes

@@ -3425,9 +3517,9 @@ bytes.

Prevent losing memory for a raptor_xml_writer when a serializer is reused several times.

-

Fixed issues reported on the Redland Issue Tracker:

+

Fixed issues reported on the Redland Issue Tracker:

    -
  • Issue #0000134: Check for equal scheme and authority during construction of relative URIs from two absolute URIs.
  • +
  • Issue #0000134: Check for equal scheme and authority during construction of relative URIs from two absolute URIs.
@@ -3489,14 +3581,14 @@ optional URI filter function that checks if the URL given is allowed to be retrieved, or denied entirely.

-

Fixed issues reported on the Redland Issue Tracker:

+

Fixed issues reported on the Redland Issue Tracker:

    -
  • #0000112: raptor_namespaces_qname_from_uri not public API?
  • -
  • #0000110: strcasecmp problem under windows (raptor_rss.c does not compile)
  • -
  • #0000091: guess parser should guess the syntax each time it is run, not be fixed
  • -
  • #0000089: Add a NONET feature to prevent network fetches
  • -
  • #0000041: Allow multiple transformation URLs in data-view:transformation property
  • -
  • #0000014: bNode content written twice in rdfxml-abbrev output mode
  • +
  • #0000112: raptor_namespaces_qname_from_uri not public API?
  • +
  • #0000110: strcasecmp problem under windows (raptor_rss.c does not compile)
  • +
  • #0000091: guess parser should guess the syntax each time it is run, not be fixed
  • +
  • #0000089: Add a NONET feature to prevent network fetches
  • +
  • #0000041: Allow multiple transformation URLs in data-view:transformation property
  • +
  • #0000014: bNode content written twice in rdfxml-abbrev output mode
@@ -3539,7 +3631,7 @@ known XSLT sheet URIs.

The Guess parser now resets after each parse and does a fresh guess on the syntax based on the incoming information. -Fixes Issue #0000091 +Fixes Issue #0000091

@@ -3558,7 +3650,7 @@ recovery.

Updated the RDF/XML Abbreviated serializer to do proper reference counting on the blank/resource nodes used as subjects and objects to prevent dual-triple generation. Fixes the reported -Issue #0000014 +Issue #0000014

@@ -3592,7 +3684,7 @@ resource.

No longer adds LDFLAGS to pkgconfig file raptor.pc and raptor-config fixing -Issue #0000097. +Issue #0000097.

@@ -3712,7 +3804,7 @@ to set a namespace for serializing from an existing

Serializing to RDF/XML (or RDF/XML Abbrev) now does not double-free URI strings. -Fixes Issue #0000065 +Fixes Issue #0000065

RSS serializer no longer writes the XML header twice.

@@ -3734,7 +3826,7 @@ splitting into qname prefering to use the current in-scope namespaces before having to search.

raptor_namespaces_format now NULL-terminates the namespace string. -Fixes Issue #0000062 +Fixes Issue #0000062

Added raptor_namespace_get_counted_prefix to return a @@ -3752,7 +3844,7 @@ associated with a QName.

raptor_stringbuffer_append_counted_string and raptor_stringbuffer_append_string now Do nothing on appending a NULL string or a string of length 0. -Fixes Issue #0000073 +Fixes Issue #0000073

@@ -3786,7 +3878,7 @@ systems when looking for the end of string NUL.

Get the curl success status into a long, not an int which causes failure on 64 bit. -Fixes Issue #0000075 +Fixes Issue #0000075

WWW requests for content to parse now always send an appropriate @@ -4058,7 +4150,7 @@ documment" giving rdf:about="".

Fix a bug when adding a default path of / to a URI in functions raptor_new_uri_for_xmlbase() and raptor_new_uri_for_retrieval(). -(Bug #0000045) +(Bug #0000045)

diff --git a/configure.ac b/configure.ac index 7d3f8cde..c00a7ec4 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,7 @@ dnl AC_PREREQ([2.62]) -AC_INIT([Raptor RDF Parser and Serializer library], [2.0.16], [http://bugs.librdf.org/], [raptor2]) +AC_INIT([Raptor RDF Parser and Serializer library], [2.0.16], [https://bugs.librdf.org/], [raptor2]) AC_CONFIG_SRCDIR([src/raptor_general.c]) AC_CONFIG_HEADERS([src/raptor_config.h]) AC_CONFIG_AUX_DIR(build) diff --git a/src/raptor_general.c b/src/raptor_general.c index fbe8d679..bf3c3ae8 100644 --- a/src/raptor_general.c +++ b/src/raptor_general.c @@ -48,9 +48,9 @@ /* statics */ -const char * const raptor_short_copyright_string = "Copyright 2000-2021 David Beckett. Copyright 2000-2005 University of Bristol"; +const char * const raptor_short_copyright_string = "Copyright 2000-2023 David Beckett. Copyright 2000-2005 University of Bristol"; -const char * const raptor_copyright_string = "Copyright (C) 2000-2021 David Beckett - http://www.dajobe.org/\nCopyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/"; +const char * const raptor_copyright_string = "Copyright (C) 2000-2023 David Beckett - http://www.dajobe.org/\nCopyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/"; const char * const raptor_license_string = "LGPL 2.1 or newer, GPL 2 or newer, Apache 2.0 or newer.\nSee http://librdf.org/raptor/LICENSE.html for full terms."; -- cgit v1.2.1