12014-11-01 Dave Beckett <dave@dajobe.org> 2 3 * Snapshotted raptor2_2_0_15 for 2.0.15 release (GIT 815e4a75a0e1f15a5cf35de48a3d0b32a14c5663) 4 5 * src/turtle_lexer.l, tests/trig/Makefile.am, 6 tests/trig/bug-584-dos.out, tests/trig/bug-584-dos.trig, 7 tests/trig/bug-584-unix.out, tests/trig/bug-584-unix.trig: Handle 8 \r in TRiG "graph-name {" 9 10 Fixes Issue #0000584 11 http://bugs.librdf.org/mantis/view.php?id=584 12 13 * src/turtle_lexer.l: 14 (turtle_token_print): Add GRAPH_NAME_LEFT_CURLY 15 16 * src/turtle_lexer.l: 17 (turtle_token_print): Add LEFT/RIGHT_CURLY 18 19 * src/turtle_lexer.l: 20 (main): Fix turtle_lexer_test to pass in string, not use yyinput 21 22 * tests/ntriples/Makefile.am, tests/ntriples/bug-577.nt, 23 tests/ntriples/bug-577.out: Add ntriples test bug-577 for URI 24 escaping 25 26 * src/turtle_common.h, src/turtle_parser.y: Rename 27 raptor_turtle_expand_name_escapes to 28 raptor_turtle_expand_qname_escapes 29 30 * src/raptor_internal.h, src/turtle_common.c, src/turtle_lexer.l: 31 (raptor_stringbuffer_append_turtle_string): Enforce URI 32 restrictions. 33 34 Add is_uri argument to distinguish. Report type label correctly. 35 URIs may not have \t \b \n \r \f or raw ' ' or \u0020 or \u003C or 36 \u003E 37 38 Update all raptor_stringbuffer_append_turtle_string callers to 39 pass URI flag. 40 41 * src/raptor_ntriples.c: 42 (raptor_ntriples_parse_term_internal): Enforce URI restrictions. 43 URIs may not have \t \b \n \r \f or raw ' ' or \u0020 or \u003C or 44 \u003E 45 46 * src/raptor_internal.h, src/raptor_ntriples.c, 47 src/turtle_common.c, src/turtle_lexer.l: 48 Remove raptor_turtle_check_uri_string() which is at wrong level. 49 50 Needs to be checked in earlier lexing so e.g. illegal escapes in 51 URIs such as \b are found. For example. 52 532014-10-28 Dave Beckett <dave@dajobe.org> 54 55 * docs/raptor-changes.tsv, docs/raptor2-sections.txt, 56 src/raptor2.h.in, src/raptor_parse.c, src/raptor_serialize.c: 57 (raptor_world_get_parsers_count, 58 raptor_world_get_serializers_count): Added 59 60 Fixes Issue #0000581 61 http://bugs.librdf.org/mantis/view.php?id=581 62 632014-10-26 Dave Beckett <dave@dajobe.org> 64 65 * src/raptor_general.c: doc fix 66 67 Fixes Issue #0000579 68 http://bugs.librdf.org/mantis/view.php?id=579 69 70 * src/raptor_iostream.c: Code tidy; use nobj for 71 raptor_iostream_write_bytes() return value. 72 73 Related to Issue #0000575 fix 74 75 * src/raptor_iostream.c: 76 Fix return values for 77 raptor_iostream_{hexa,}decimal_write 78 79 (raptor_iostream_decimal_write, 80 raptor_iostream_hexadecimal_write): Return non-0 if number of 81 objects returned from raptor_iostream_write_bytes() does not match 82 expected length. 83 84 Fixes Issue #0000575 85 http://bugs.librdf.org/mantis/view.php?id=575 86 87 * src/raptor_ntriples.c, src/raptor_term.c, 88 tests/ntriples/Makefile.am, tests/ntriples/bug-574.nt, 89 tests/ntriples/bug-574.out: Accept '_' as alias/typo for '-' in 90 lang strings. 91 92 Replace on parsing. 93 Fixes Issue #0000574 94 http://bugs.librdf.org/mantis/view.php?id=574 95 962014-10-20 Dave Beckett <dave@dajobe.org> 97 98 * Merge pull request #16 from rhmccullough/rdf-nil do not change 99 "( )" to "rdf:nil" 100 1012014-10-19 Dave Beckett <dave@dajobe.org> 102 103 * docs/Makefile.am, docs/raptor-1-to-2-map.tsv, 104 docs/raptor-changes.tsv: Rename changes file to raptor-changes.tsv 105 106 Not just about v1 to v2 107 108 * scripts/process-changes.pl: Make process-changes.pl report wrong 109 fields count 110 111 * .travis.yml: run autogen.sh not configure twice 112 113 * scripts/install-bison3.sh: 114 delete working dir 115 116 * scripts/install-bison3.sh: sudo 117 118 * .travis.yml: Looks like Travis OS support is not generally 119 available 120 121 http://blog.travis-ci.com/2014-05-13-multi-os-feature-available/ 122 1232014-10-19 Richard H. McCullough <rhmccullough@gmail.com> 124 125 * src/raptor_serialize_turtle.c: do not change "( )" to "rdf:nil" 126 127 In tests/turtle: rapper -i turtle -o turtle test-08.ttl 128 changes "( )" to "rdf:nil". 129 This change to src/raptor_serialize_turtle.c will produce "( )" in 130 the output file. 131 1322014-10-19 Dave Beckett <dave@dajobe.org> 133 134 * .travis.yml: Quote TRAVIS_OS_NAME that doesn't always seem to be 135 defined 136 137 * .travis.yml: use test not [ ] 138 139 * RELEASE.html: 2.0.15 140 141 * .travis.yml, scripts/install-bison3.sh: Travis update attempt 142 1432014-10-12 Dave Beckett <dave@dajobe.org> 144 145 * tests/rdfa11/Makefile.am: doc 146 147 * tests/rdfa11/0297.out, tests/rdfa11/Makefile.am: 0297 passes 148 149 * tests/rdfa11/0303.out, tests/rdfa11/Makefile.am: 0303 passes 150 151 * tests/rdfa11/Makefile.am: 26 failures 152 153 * tests/rdfa11/0235.out, tests/rdfa11/Makefile.am: 0235 passes 154 155 * tests/rdfa11/Makefile.am: Fix error report again 156 157 * tests/rdfa11/0134.out: fix 134 out 158 159 * tests/rdfa11/0134.out, tests/rdfa11/Makefile.am: 0134 passes 160 161 * tests/rdfa11/0197.out, tests/rdfa11/Makefile.am: 0197 passes 162 163 * tests/rdfa11/Makefile.am: 0197 now fails, 0302 now passes. 164 165 * tests/rdfa11/Makefile.am: Tidy failure output 166 167 * tests/rdfa11/0295.out: Update 0295 output 168 1692014-10-10 Dave Beckett <dave@dajobe.org> 170 171 * librdfa/curie.c: Support full URLs for typeof. 172 librdfa commit 5b73975a778ee00f328457356a69163911d540a5 173 1742014-10-09 Dave Beckett <dave@dajobe.org> 175 176 * src/Makefile.am: Further fix flex/bison rules to silence them in 177 normal runs 178 179 * configure.ac, src/parsedate.y, src/raptor_internal.h, 180 src/raptor_rdfxml.c: Use __FUNCTION__ (c99) replacing __func__ 181 (c90) 182 183 * src/sort_r.h: Add BSD header checks from sort_r 184 185 * src/raptor_turtle_writer.c: Trailing , 186 187 * configure.ac: Add some GCC5 warning flags 188 189 * Merge pull request #14 from hroptatyr/compiler-support Intel C 190 compiler (icc) support 191 1922014-10-09 Sebastian Freundt <freundt@ga-group.nl> 193 194 * librdfa/rdfa.c, librdfa/triple.c, utils/rapper.c: const'ify 195 string literals and char pointers that needn't be changed 196 197 librdfa (start_element): const'ify umap_key 198 librdfa (rdfa_complete_object_literal_triples): const'ifty 199 current_object_literal 200 rapper (print_graph): const'ify label 201 202 * configure.ac: Always use AC_LANG_WERROR when checking for 203 compiler warning flags 204 205 Many gcc-compatible compilers (icc, clang, etc.) verbosely ignore 206 gcc command line flags issuing a warning of some sort. Catch 207 these warnings and turn them into errors when checking for support 208 of specific warning flags. 209 2102014-10-04 Dave Beckett <dave@dajobe.org> 211 212 * scripts/Makefile.am, scripts/fix-bison, scripts/fix-bison.pl, 213 scripts/fix-flex, scripts/fix-flex.pl, src/Makefile.am: Rename 214 fix-flex, fix-bison to have .pl suffix 215 216 * ChangeLog, NEWS.html, RELEASE.html: 217 2.0.15 218 2192014-09-25 Dave Beckett <dave@dajobe.org> 220 221 * src/raptor_grddl.c: 222 (raptor_grddl_filter_triples): Fix <uri> <uri> <uri> check [gcc5] 223 224 This has been broken since 2007 but just meant too much work was 225 being done. Original commit that added this 226 8bb88c9c4a5800b1163b50d2ff12b5245b4b1498 227 2282014-08-21 Dave Beckett <dave@dajobe.org> 229 230 * utils/rdfdiff.c: Provide title and usage if args are missing 231 [Coverity CID 72385] 232 2332014-08-09 Dave Beckett <dave@dajobe.org> 234 235 * src/raptor_term.c: 236 (raptor_new_term_from_blank): Accept "" as same as NULL blank 237 2382014-08-04 Dave Beckett <dave@dajobe.org> 239 240 * src/raptor_uri.c: raptor_uri_counted_filename_to_uri_string 241 handles a counted string 242 243 (raptor_uri_counted_filename_to_uri_string): Do not look for end 244 NUL char, count lengths. 245 246 Fixes Issue #0000576 247 http://bugs.librdf.org/mantis/view.php?id=576 248 249 * src/raptor_turtle_writer.c: 250 raptor_turtle_writer_quoted_counted_string handles a counted 251 string 252 253 (raptor_turtle_writer_contains_newline): Add len param and use it, 254 drop strlen(). 255 256 (raptor_turtle_writer_quoted_counted_string): Use len, drop 257 strlen() and call raptor_turtle_writer_contains_newline with 258 passed in len. 259 260 Fixes Issue #0000576 261 http://bugs.librdf.org/mantis/view.php?id=576 262 263 * src/raptor_uri.c: 264 Do not assume NUL terminated string in 265 raptor_new_uri_from_counted_string 266 267 (raptor_new_uri_from_counted_string): Remove debug assert and use 268 fwrite to emit counted URI string to debug file handler. 269 270 Fixes Issue #0000576 271 http://bugs.librdf.org/mantis/view.php?id=576 272 273 * src/raptor_internal.h, src/turtle_parser.y: Add RAPTOR_DEBUG_FH 274 define internally 275 2762014-08-02 Dave Beckett <dave@dajobe.org> 277 278 * INSTALL.html: Fix flex url 279 2802014-07-27 Dave Beckett <dave@dajobe.org> 281 282 * src/raptor_iostream.c: Document sink handlers 283 2842014-07-26 Dave Beckett <dave@dajobe.org> 285 286 * src/raptor_rfc2396.c: 287 (raptor_uri_normalize_path): Check size of output buffer is big 288 enough. 289 2902014-07-07 Dave Beckett <dave@dajobe.org> 291 292 * README.html, INSTALL.html: bye bye sf 293 294 * README.html: Update TRiG pointer, conformance 295 2962014-06-29 Dave Beckett <dave@dajobe.org> 297 298 * src/sort_r.c: correct docs; does not always use sort_r 299 300 * src/ssort.h: one more rename 301 302 * docs/raptor-1-to-2-map.tsv, src/raptor2.h.in, 303 src/raptor_sequence.c, src/sort_r.c: 304 raptor_data_compare_arg_handler renamed from raptor_sort_r_compare 305 Added it to changelog too 306 307 * src/sort_r.c: Make sort test quiet on success 308 309 * src/sort_r.c: const 310 311 * src/sort_r.c: portability 312 313 * configure.ac, src/Makefile.am, src/sort_r.c, src/ssort.h: 314 Add 315 public domain ssort_r if qsort_r and qsort_s are not present 316 317 * docs/raptor-1-to-2-map.tsv, src/raptor2.h.in, 318 src/raptor_sequence.c: 319 (raptor_sequence_sort_r): Added based on raptor_sort_r() 320 321 * docs/raptor-1-to-2-map.tsv, src/Makefile.am, src/raptor2.h.in, 322 src/sort_r.c: 323 (raptor_sort_r): Added based on public domain sort_r() 324 325 * src/sort_r.h, sort_r.c: Public Domain sort_r() by Isaac Turner 326 Imported GIT commit 7c60ef94753624291055af0b1eec291f8c4bd5a7 from 327 https://github.com/noporpoise/sort_r 328 3292014-05-21 Dave Beckett <dave@dajobe.org> 330 331 * src/parsedate.y: 332 Update to point to PHP GIT 333 334 * src/parsedate.y: Fix -99 <= var <= 99 timezone interval check. 335 Thanks to Richard Trieu for the report. 336 3372014-05-11 Dave Beckett <dave@dajobe.org> 338 339 * docs/raptor-docs.xml: 2014 340 3412014-05-09 Dave Beckett <dave@dajobe.org> 342 343 * src/raptor_locator.c, src/snprintf.c: 344 (raptor_locator_format): Add a NUL to terminate output string. 345 See librdf commit aa3bf4ccf4cc9381a1c198566428812af28944de that 346 works around this. 347 3482014-05-05 Dave Beckett <dave@dajobe.org> 349 350 * utils/rapper.1: Use \- for hyphen 351 352 * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped 353 version to 2.0.15 354 355 * ChangeLog: 356 Snapshotted raptor2_2_0_14 for 2.0.14 release (GIT 357 93bc8ef8fa1c0b6b4278412f5d12e558b70db708) 358 359 * src/raptor_uri.c: fix autodoc 360 361 * NEWS.html, RELEASE.html: 2.0.14 362 363 * Update tmpls 364 365 * Snapshotted raptor2_2_0_14 for 2.0.14 release (GIT 93bc8ef8fa1c0b6b4278412f5d12e558b70db708) 366 3672014-05-03 Dave Beckett <dave@dajobe.org> 368 369 * configure.ac: Import flex check from rasqal 370 3712014-04-28 Dave Beckett <dave@dajobe.org> 372 373 * scripts/fix-bison: Remove dead code from bison output 374 3752014-04-27 Dave Beckett <dave@dajobe.org> 376 377 * tests/rdfa/Makefile.am: Fix failure test and update expected 378 failures: +0294.xml +0349.xml 379 380 * tests/rdfa11/Makefile.am: Echo message when failures are not 381 what expected 382 383 * librdfa/rdfa.c: 384 (rdfa_init_base): Fix <base href > Fixes support broke in commit 385 9447e886ad66a1c3dd2c877341feca639824488a 386 3872014-04-26 Dave Beckett <dave@dajobe.org> 388 389 * tests/rdfa11/Makefile.am: Fail exit on test failures - broken 390 for a long itme 391 392 * src/turtle_parser.y: 393 (collection): Use YYERR_MSG_GOTO to stop early break and add debug 394 info 395 396 * src/turtle_parser.y: Import header code from turtle-parser.y 397 3982014-04-20 Dave Beckett <dave@dajobe.org> 399 400 * configure.ac, src/turtle_lexer.l: Define FLEX_VERSION_DECIMAL 401 and use to not duplicate column prototypes. 402 403 * scripts/fix-flex: Convert buffer check for PREFIX_restart into 404 simple form 405 406 * scripts/fix-flex: Use YY_CURRENT_BUFFER_LVALUE in 407 PREFIX_pop_buffer_state [coverity CID 29295] 408 409 * scripts/fix-flex: pop_buffer_state does not get changed with 410 rule; delete ref 411 412 * src/turtle_lexer.l: YY_FATAL_ERROR always calls abort() - 413 hopefully coverity notices 414 415 * scripts/fix-flex: 416 Remove dead code after YY_INPUT - which is a 417 return NULL [coverity CID 29302] 418 419 * scripts/fix-flex: 420 Match (static) yy_ prefix functions too 421 422 * scripts/fix-flex: 423 Use YY_CURRENT_BUFFER_LVALUE when ensured ok 424 [coverity CID 29242 29252 29253 29295] 425 426 Rewrite YY_CURRENT_BUFFER to YY_CURRENT_BUFFER_LVALUE in some 427 functions after a PREFIX_ensure_buffer_stack() call has been seen. 428 429 * scripts/fix-flex: 430 Give function processing a state var %fn_state 431 432 * scripts/fix-flex: Cleanups - Figure out lexer prefix from input 433 - Capture current function name in $cur_function - Rewrite some 434 checks to use exact function name - Added $debug var 435 4362014-04-19 Dave Beckett <dave@dajobe.org> 437 438 * scripts/fix-bison: Set yytoken to non-negative value for 439 [coverity CID 29259] 440 441 * scripts/fix-bison: Add a default value for yyformat for 442 [coverity CID 10838] 443 444 * src/raptor_xml.c: Added coverity[negative_returns] for second 445 use of unichar_len [CID 29257] 446 447 * librdfa/lists.c: 448 (rdfa_complete_list_triples): Init tmp for error path [coverity 449 CID 36737] 450 451 * src/raptor_grddl.c: 452 (raptor_grddl_run_xpath_match): Free base_uri on error path 453 [coverity CID 34618] 454 455 * src/raptor_serialize_turtle.c: 456 (raptor_turtle_emit_subject): Free iterator on error path [coverity 457 CID 34617] 458 4592014-04-18 Dave Beckett <dave@dajobe.org> 460 461 * src/raptor_serialize_rss.c: 462 (raptor_rss10_emit_rdfxml_item_triples): root_element NULL [coverity 463 CID 34616] (raptor_rss10_emit_rdfxml_item_triples): start xml root_element if 464 not NULL [coverity CID 34616] 465 466 * librdfa/curie.c: 467 (rdfa_resolve_uri): Check end_index2 is not NULL [coverity CID 468 29261] 469 470 * librdfa/lists.c: 471 (rdfa_complete_list_triples): strdup and strstr output. [coverity 472 CID 29260] 473 474 (rdfa_complete_list_triples): Be careful for strdup and strstr 475 returning NULL. [coverity CID 29260] 476 477 * src/raptor_namespace.c: Check return of raptor_xml_escape_string 478 for errors [coverity CID 29258] 479 480 (raptor_namespace_format_as_xml): Check return values of 481 raptor_xml_escape_string() for negative failure before casting to 482 size_t. 483 484 * src/raptor_iostream.c: 485 (test_read_from_filename): Use int for read bytes values 486 487 * src/raptor_parse.c: Treat raptor_iostream_read_bytes() returning 488 int [coverity CID 29256] 489 490 (raptor_parser_parse_iostream): Treat raptor_iostream_read_bytes() 491 return as int, convert to size_t when it's known to be 492 non-negative. [coverity CID 29256] The real fix is incompatible 493 API change to make iostream return size_t or ssize_t for reads. 494 495 * src/raptor_serialize_rdfxml.c: 496 (raptor_rdfxml_serialize_statement): Restore *name always [coverity 497 CID 29255] 498 499 * librdfa/rdfa.c: 500 (end_element): Do not call rdfa_complete_list_triples() with no 501 new subject [coverity CID 29254] 502 503 * src/raptor_xml_writer.c: 504 (raptor_xml_writer_start_element_common): attribute namespaces 505 [coverity CID 29244] 506 507 (raptor_xml_writer_start_element_common): Process attribute 508 namespaces only if there is a namespace stack [coverity CID 29244] 509 510 * src/raptor_librdfa.c: rdfa requires a base URI [coverity CID 511 29250] 512 513 (raptor_librdfa_parse_start): Add check for base URI 514 (raptor_librdfa_parser_register_factory): Mark 'rdfa' parser needs 515 a base URI. 516 517 * librdfa/triple.c: 518 (rdfa_complete_object_literal_triples) strchr on NULL [coverity CID 519 29429] 520 521 (rdfa_complete_object_literal_triples): Need non NULL 522 context->xml_literal to do strchr() on it [coverity CID 29429] 523 524 * src/raptor_serialize_rdfxml.c: 525 (raptor_rdfxml_serialize_statement): Remove always 0 526 end_predicate_element [coverity CID 29238] 527 528 * src/raptor_serialize_rss.c: 529 (raptor_rss10_emit_rdfxml_item_triples): Free root_qname in logical 530 place [coverity CID 29236] 531 532 * src/raptor_xml_writer.c: 533 (raptor_xml_writer_start_element_common): nstack [coverity CID 534 29244] 535 536 (raptor_xml_writer_start_element_common): Defining xml language 537 declaration requires namespace declarations so add nstack check. 538 539 * src/raptor_grddl.c: 540 (raptor_grddl_run_xpath_match): Check if uri_string is not NULL 541 [coverity CID 29243] 542 543 * src/raptor_log.c: 544 (raptor_log_error): Allow world to be NULL [coverity CID 29241] 545 546 * src/raptor_log.c: 547 (raptor_log_error_varargs): Allow world to be NULL [coverity CID 548 29241] 549 550 * librdfa/triple.c: 551 (rdfa_complete_current_property_value_triples): Remove duplicate 552 variable [coverity CID 29240] 553 554 * src/raptor_grddl.c: 555 (raptor_grddl_parse_chunk): Remove logically dead code [coverity CID 556 29239] loop is always 0 or 1 so don't check for other values. 557 558 * src/raptor_serialize_rss.c: 559 (raptor_rss10_emit_rdfxml_item_triples): Remove logically dead code 560 [coverity CID 29237] No need to test freeing serializer twice. 561 562 * src/raptor_grddl.c: 563 (raptor_grddl_run_grddl_transform_doc): Check parse start/chunk 564 returns [coverity CID 29235] 565 566 * src/raptor_serialize_turtle.c: 567 (raptor_turtle_emit_subject): check raptor_avltree_iterator_next() 568 return [coverity CID 29234] 569 5702014-04-17 Dave Beckett <dave@dajobe.org> 571 572 * src/raptor_parse.c: 573 (raptor_parser_fatal_error): set parser failed if not NULL [coverity 574 CID 29283] 575 576 * src/raptor_xml_writer.c: 577 (raptor_xml_writer_start_element_common): nspace_declarations is 578 never NULL on return path [coverity CID 29284] 579 580 * src/raptor_xml_writer.c: 581 (raptor_xml_writer_start_element): element is not NULL [coverity CID 582 29285] 583 584 * src/raptor_rss.c: 585 (raptor_rss_end_element_handler): rss_element is never NULL 586 [coverity CID 29286] 587 588 * src/raptor_abbrev.c: 589 (raptor_new_abbrev_subject): Do not use subject->properties on debug 590 path [coverity CID 29287] 591 592 * src/raptor_uri.c: 593 (raptor_uri_counted_filename_to_uri_string): Error path cannot use 594 NULL buffer [coverity CID 29302] 595 596 * src/raptor_serialize_rdfxml.c: 597 (raptor_rdfxml_serialize_statement): Free object_uri_string always 598 [coverity CID 29269] 599 600 * src/raptor_serialize_turtle.c: 601 (raptor_turtle_emit_subject_collection_items): Free iter on error 602 [coverity CID 29263] 603 604 * src/turtle_lexer.l: Free stringbuffer on error case [coverity 605 CID 29273] 606 6072014-04-16 Dave Beckett <dave@dajobe.org> 608 609 * librdfa/rdfa.c: 610 (rdfa_init_base): Fix uri_start dead code again [coverity CID 29700] 611 612 * src/raptor_abbrev.c: 613 (raptor_new_abbrev_subject): node arg is never NULL [coverity CID 614 29288] 615 616 * src/raptor_qname.c: 617 (raptor_new_qname_from_namespace_local_name): move strlen after 618 local_name NULL check [coverity CID 29289] 619 620 * utils/rdfdiff.c: 621 (main): from_string and to_string are never NULL [coverity CID 622 29290, CID 29291] 623 624 * librdfa/triple.c: 625 (rdfa_complete_object_literal_triples): NULL check for 626 context->xml_literal [coverity CID 29292] 627 628 * src/raptor_serialize_rdfxmla.c: 629 (raptor_rdfxmla_serialize_set_xml_writer): Check xml_writer NULL 630 [coverity CID 29293] 631 632 * src/raptor_log.c: 633 (raptor_log_error_varargs): Can assume world is not NULL [coverity 634 CID 29294] 635 636 * librdfa/rdfa.c: 637 (end_element): Add parent_context check around block [coverity CID 638 29296] 639 640 * librdfa/rdfa.c: 641 (rdfa_init_base): Check for uri_start before use [coverity CID 642 29297] 643 644 * src/raptor_serialize_turtle.c: 645 (raptor_turtle_emit_subject_collection_items): Free iter on error 646 path [coverity CID 29263] 647 648 * src/raptor_parse.c: 649 (raptor_world_guess_parser_name): Free scores on error path 650 [coverity CID 29264] 651 652 * src/raptor_grddl.c: 653 (raptor_grddl_run_recursive): Free ibuffer [coverity CID 29265] 654 655 * src/raptor_rss.c: 656 (raptor_rss_end_element_handler): Free field on error path [coverity 657 CID 29266] 658 659 * src/raptor_rss.c: 660 (raptor_rss_insert_rss_link): Free field on error path [coverity CID 661 29267] 662 663 * src/raptor_serialize_rdfxml.c: 664 (raptor_rdfxml_serialize_statement): Free object_uri_string on error 665 path [coverity CID 29269] 666 667 * src/raptor_serialize_rss.c: 668 (raptor_rss10_serialize_end): Error path entry_uri cleanup [coverity 669 CID 29270] 670 671 * librdfa/lists.c: 672 (rdfa_complete_list_triples): Free bnode after loop [coverity CID 673 29272] Also strdup() the rdf:nil string so it can be freed. 674 675 * src/turtle_lexer.l: Free stringbuffer on error case [coverity 676 CID 29273] 677 678 * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, 679 src/raptor2.h.in, src/raptor_internal.h, src/raptor_rfc2396.c, 680 src/raptor_uri.c: Added raptor_uri_counted_filename_to_uri_string 681 682 (raptor_uri_counted_filename_to_uri_string): Added based on 683 raptor_uri_filename_to_uri_string. Updated to properly check the 684 length of the incoming filename and ensure (on unix) that the path 685 buffer is big enough. Eliminate strcat() calls while here. For 686 win32, properly calculate the length when there is a :\ in the 687 filename. RAPTOR_FATAL4 added for debugging URI length failures 688 689 * src/turtle_common.c: (raptor_turtle_expand_name_escapes): arg 690 free on error path [coverity CID 29303] 691 692 (raptor_turtle_expand_name_escapes): Remove RAPTOR_FREE of name 693 argument on error paths - this function does not own name. 694 6952014-03-24 Dave Beckett <dave@dajobe.org> 696 697 * ChangeLog, ChangeLog.14, Makefile.am: ChangeLog.14 for 2013 698 6992014-03-24 Dave Beckett <dave@dajobe.org> 700 701 * librdfa/lists.c, librdfa/rdfa.c: librdfa fixes for 702 -Wunreachable-code (clang) 703 7042014-02-24 Dave Beckett <dave@dajobe.org> 705 706 * src/raptor_general.c, src/raptor_json.c, src/raptor_rss.c, 707 src/raptor_turtle_writer.c: Fixes for -Wunreachable-code (clang) 708 709 (raptor_rss_insert_identifiers): When inserting identifiers, allow 710 the loop to continue searching. 711 712 (raptor_rss_start_namespaces): Remove loop since 1 value is 713 enough. 714 715 * configure.ac: Add -Wunreachable-code (clang) 716 7172014-02-13 Dave Beckett <dave@dajobe.org> 718 719 * tests/turtle-2013/Makefile.am, tests/turtle-2013/oops.nt, 720 tests/turtle-2013/oops.ttl: Add test and expected response for RDF 721 1.1 Turtle post-REC error 722 723 Announced: 724 http://lists.w3.org/Archives/Public/public-rdf-comments/2014Feb/0018.html 725 Expected answer requested: 726 http://lists.w3.org/Archives/Public/public-rdf-comments/2014Feb/0020.html 727 7282014-02-12 Dave Beckett <dave@dajobe.org> 729 730 * tests/ntriples-2013/LITERAL.nt, 731 tests/ntriples-2013/LITERAL_all_controls.nt, 732 tests/ntriples-2013/LITERAL_all_punctuation.nt, 733 tests/ntriples-2013/LITERAL_with_2_dquotes.nt, 734 tests/ntriples-2013/LITERAL_with_2_squotes.nt, 735 tests/ntriples-2013/LITERAL_with_UTF8_boundaries.nt, 736 tests/ntriples-2013/LITERAL_with_dquote.nt, 737 tests/ntriples-2013/LITERAL_with_squote.nt, 738 tests/ntriples-2013/Makefile.am, tests/ntriples-2013/README, 739 tests/ntriples-2013/literal.nt, 740 tests/ntriples-2013/literal_all_controls.nt, 741 tests/ntriples-2013/literal_all_punctuation.nt, 742 tests/ntriples-2013/literal_with_2_dquotes.nt, 743 tests/ntriples-2013/literal_with_2_squotes.nt, 744 tests/ntriples-2013/literal_with_UTF8_boundaries.nt, 745 tests/ntriples-2013/literal_with_dquote.nt, 746 tests/ntriples-2013/literal_with_squote.nt: Renames to match W3C 747 mercurial repo names 748 7492014-01-29 Dave Beckett <dave@dajobe.org> 750 751 * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped 752 version to 2.0.14 753 754 * Snapshotted raptor2_2_0_13 for 2.0.13 release (GIT 755 fde3f210e7442de6de16c410443fd8a695f09820) 756 7572014-01-29 Dave Beckett <dave@dajobe.org> 758 759 * NEWS.html, RELEASE.html: 760 2.0.13 761 7622014-01-27 Dave Beckett <dave@dajobe.org> 763 764 * ChangeLog, INSTALL.html, LICENSE.html, NEWS.html, README.html, 765 RELEASE.html, TODO.html, UPGRADING.html: 2.0.13 and 2014 766 767 * configure.ac: Use presence of libxml / curl config programs as 768 test for presence 769 770 Symptom was that after configuring, curl was present but not used 771 for WWW fetching. 772 773 Original commit that changed this was 774 commit 7da03ba5cd6e45ea41afebd4955acf6e96e9d622 775 Date: Fri Apr 5 19:01:55 2013 +0100 776 777 which was Raptor 2.0.10 onwards 778 7792014-01-15 Dave Beckett <dave@dajobe.org> 780 781 * autogen.sh: Create NEWS and README 782 7832014-01-14 Dave Beckett <dave@dajobe.org> 784 785 * Makefile.am: fix html rules more 786 787 * .travis.yml: Travis CI fix 788 789 * Makefile.am: fix html rule 790 7912014-01-10 Dave Beckett <dave@dajobe.org> 792 793 * src/raptor_abbrev.c: 794 Revert: (raptor_abbrev_subject_find): Remove 795 double free of lookup_node. 796 797 This reverts commit c1c82f1be5d86ebf95fa10b86a938d6799e35626. 798 799 * src/raptor_rfc2396.c: 800 (raptor_uri_resolve_uri_reference): Handle NULL ref->path 801 802 * src/raptor_abbrev.c: 803 (raptor_abbrev_subject_find): Remove double free of lookup_node 804 Remove call to raptor_free_abbrev_node() 805 8062014-01-07 Dave Beckett <dave@dajobe.org> 807 808 * configure.ac: Use AC_CHECK_PROGS to find jing 809 AC_CHECK_PROG doesn't default to setting it as found! 810 8112014-01-04 Dave Beckett <dave@dajobe.org> 812 813 * src/raptor_general.c: 2014 814 815 * src/turtle_lexer.l: Remove YY_INPUT - never want to read from 816 stdin/file 817 8182014-01-02 Dave Beckett <dave@dajobe.org> 819 820 * Merge pull request #12 from dajobe/bison3.0-new Switch to use 821 and require Bison 3.0 822 823 * src/turtle_lexer.l: Provide missing flex prototypes for flex 824 2.5.35 or earlier 825 826 * src/parsedate.y: 827 (raptor_parse_date): No need for cast to void* for yyparse 828 8292014-01-01 Dave Beckett <dave@dajobe.org> 830 831 * src/turtle_parser.y: Remove redundant declaration of 832 turtle_lexer_lex 833 834 * configure.ac, src/Makefile.am: Alter configure to accept bison 835 3.0.0 or newer, no yacc 836 837 * src/parsedate.y: Add bison 3.0 directives 838 839 * src/parsedate.y: Bison 3.0 the parsedate parser 840 841 - Update to new directives 842 - Set %param 843 - Update error call 844 845 * src/turtle_parser.y: Bison 3.0 the turtle parser 846 847 - Use bison 3.0+ directives replacing all command line arguments 848 - Update lexer and parser parameters (remove use of YYLEX_PARAM) 849 - (turtle_parser_error): Add scanner arg. 850 - Use rdf_parser argument directly rather than via casted variable. 851 - Add %empty directives 852 - Remove casts to raptor_parser* that are no longer needed 853 - (turtle_parse): Pass in scanner 854 855 * src/turtle_parser.y: Remove YY_DECL 856 857 * src/turtle_lexer.l: Add %option bison-bridge 858 859 * src/turtle_lexer.l: Remove turtle_lexer_lex prototype / header 860 override 861 862 No longer use YYDECL - the default works. 863 864 * src/turtle_lexer.l: Replace turtle_parser_lval with yylval 865 866 * src/turtle_common.c: Move turtle_lexer.h include earlier so 867 YYSTYPE can be found 868 869 * src/turtle_lexer.l, src/turtle_parser.y: Remove token union 870 unused integer field 871 872