summaryrefslogtreecommitdiff
path: root/relaxng.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix hash callback signaturesNick Wellnhofer2017-11-091-18/+17
| | | | | | | | | Make sure that all parameters and return values of hash callback functions exactly match the callback function type. This is required to pass clang's Control Flow Integrity checks and to allow compilation to asm.js with Emscripten. Fixes bug 784861.
* Fix -Wimplicit-fallthrough warningsJ. Peter Mugaas2017-10-211-2/+2
| | | | | Add "falls through" comments to quench implicit-fallthrough warnings which are enabled by -Wextra under GCC 7.
* Fix pointer/int cast warnings on 64-bit WindowsNick Wellnhofer2017-10-091-6/+7
| | | | | | | | | | | On 64-bit Windows, `long` is 32 bits wide and can't hold a pointer. Switch to ptrdiff_t instead which should be the same size as a pointer on every somewhat sane platform without requiring C99 types like intptr_t. Fixes bug 788312. Thanks to J. Peter Mugaas for the report and initial patch.
* relaxng.c, xmlschemas.c: Fix build on pre-C99 compilersChun-wei Fan2016-06-231-1/+2
| | | | | | Make sure that the variables are declared at the top of the block. https://bugzilla.gnome.org/show_bug.cgi?id=767063
* More format string warnings with possible format string vulnerabilityDavid Kilzer2016-05-231-1/+2
| | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=761029 adds a new xmlEscapeFormatString() function to escape composed format strings
* Fix some format string warnings with possible format string vulnerabilityDavid Kilzer2016-05-231-2/+2
| | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
* Fix support for except in nameclassesDaniel Veillard2015-03-161-1/+5
| | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=565219 The code was imply missing even if simple, added a few regression tests.
* Remove various unused value assignmentsPhilip Withnall2014-10-271-1/+1
| | | | | | As detected by Coverity (CIDs 60467–60472). https://bugzilla.gnome.org/show_bug.cgi?id=739220
* Add couple of missing Null checksDaniel Veillard2014-07-261-1/+6
| | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=733710 Reported by Gaurav but with slightly different fixes
* Add a couple of misisng check in xmlRelaxNGCleanupTreeGaurav Gupta2014-07-141-3/+4
| | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=733041 check cur->parent before dereferencing the pointer even if a null parent there should not happen Also fix a typo
* Add a missing argument checkGaurav Gupta2014-07-141-1/+1
| | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=733042 the states argument of xmlRelaxNGAddStates() ought to be checked too
* Adding a check in case of allocation errorGaurav Gupta2014-07-141-0/+4
| | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=733043 There is missing Null condition in xmlRelaxNGValidateInterleave of relaxng.c Dereferencing it may cause a crash.
* Fix typos in relaxng.cJan Pokorný2014-06-101-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Implement choice for name classes on attributesShaun McCance2013-11-281-0/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710744
* Avoid some dead code and cleanup in relaxng.cGaurav2013-09-301-4/+1
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=705388 Code needed a bit of cleanup
* Fix spelling of "length".Michael Wood2012-10-301-1/+1
|
* Big space and tab cleanupDaniel Veillard2012-09-111-49/+49
| | | | Remove all space before tabs and space and tabs at end of lines.
* Add a missing element checkDaniel Veillard2012-08-131-2/+3
|
* Fix weird streaming RelaxNG errorsNoam2012-05-151-2/+2
| | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=512454 The bug was to use compiled determinitic automata when the content model was found to be non-deterministic, leading to random parsing errors.
* Fix an unimplemented part in RNG value validationDaniel Veillard2011-11-101-0/+29
| | | | | | | | Forgot to implement <optional> this was raised again in https://bugzilla.redhat.com/show_bug.cgi?id=752393 as this make libxml2 fail to validate against ODF RNGs Daniel
* Fix RELAX NG include bug #655288Shaun McCance2011-08-041-2/+2
| | | | | | When overriding during include, children of the root node are scanned. But the root node was gotten with doc->children, instead of xmlDocGetRootElement.
* relaxng.c: cast to allow compilation with sun studio 11Ben Walton2010-03-151-2/+4
| | | | | | | | | | | | Sun Studio 11 was failing to compile relaxng.c due to a type mismatch in a ternary operator used to provide an argument to xmlRngPErr. It seems that sos11 cc is more pedantic about this part of the C99 standard. GCC issues a warning but doesn't fail by default. After casting the string literal "nothing" to (const xmlChar *) sos11 cc is happy. GCC no longer issues a warning either. Another warning was cleaned up with an identical cast.
* 595792 fixing a RelaxNG bug introduced in 2.7.4Daniel Veillard2009-09-241-0/+9
| | | | | | | * relaxng.c: refs definitions added from inported schemas should not be processed as refs from the main schemas * test/relaxng/595792* result/relaxng/595792*: add the test to the regression suite
* Fix Windows buildRob Richards2009-09-091-2/+2
| | | | * relaxng.c: fix windows build
* Chasing dead assignments reported by clang-scanDaniel Veillard2009-09-071-0/+4
| | | | | | | | * SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations, but this led to a few real bugs and some part not yet understood (relaxng/interleave)
* A few more safety cleanup raised by scanDaniel Veillard2009-09-071-1/+4
| | | | | * SAX2.c encoding.c parser.c xmlschemas.c: a few more safety checks * relaxng.c: remove an unused intitialization
* Fixing assorted potential problems raised by scanDaniel Veillard2009-09-071-2/+6
| | | | | * encoding.c parser.c relaxng.c runsuite.c tree.c xmlreader.c xmlschemas.c: nothing really serious but better safe than sorry
* 492317 Fix Relax-NG validation problemsDaniel Veillard2009-08-311-0/+21
| | | | | | | | | * relaxng.c xmlregexp.c: a subtle problem when checking for compileable content model, if using the same elements in cases of choices. Handled by adding a special flag to the regexp compilation to detect transitions with different atoms using same strings. * test/relaxng/492317* result/relaxng/492317*: add the test to the regression suite
* 558452 fight with reg test and error reportDaniel Veillard2009-08-261-0/+4
| | | | | | | | * relaxng.c: tiny fix and provide more context on some errors * result/relaxng/558452_0* test/relaxng/558452*: add some regression tests for the bugs * Makefile.am runtest.c: fight with the fact streaming error messages can differ due to missing node context
* 558452 RNG compilation of optional multiple childDaniel Veillard2009-08-261-1/+5
| | | | * relaxng.c: don't assume there is a single define under a optional
* Fix the problem of revalidating a doc with RNGDaniel Veillard2009-08-211-1/+60
| | | | | * relaxng.c: simply clear up the ->psvi of elements on the tree upon return, should not be needed for streaming APIs as tree are discarded
* 512131 refs from externalRef part need to be addedDaniel Veillard2009-08-141-2/+83
| | | | | | * relaxng.c: refs from externalRef subschemas need to be added to the main schemas. Also fix a couple of problems with dangling references
* 512131 crash in xmlRelaxNGValidateFullElementDaniel Veillard2009-08-141-18/+10
| | | | | * relaxng.c: in some case we were not freeing the right data, also cleanup a few other things
* Switch off debugging, oops, DanielDaniel Veillard2008-06-251-1/+1
| | | | svn path=/trunk/; revision=3749
* patch from Hans de Goede to switch the file to UTF-8 switch to generateDaniel Veillard2008-06-021-1/+5
| | | | | | | | | * ChangeLog: patch from Hans de Goede to switch the file to UTF-8 * doc/news.xsl: switch to generate the NEWS file in UTF-8 instead of ISO-8859-1 Daniel svn path=/trunk/; revision=3745
* fixed bug #407436 a crash in a specific case of Relax-NG validation DanielDaniel Veillard2007-06-121-1/+2
| | | | | | | | * relaxng.c: fixed bug #407436 a crash in a specific case of Relax-NG validation Daniel svn path=/trunk/; revision=3629
* fix a Relax-NG bug related to element content processing, fixes bugDaniel Veillard2006-10-131-0/+2
| | | | | | * relaxng.c: fix a Relax-NG bug related to element content processing, fixes bug #302836 Daniel
* Fixed compilation error (bug 340765) reported by dmacks with patchWilliam M. Brack2006-05-061-1/+1
| | | | | * relaxng.c: Fixed compilation error (bug 340765) reported by dmacks with patch supplied by Graham Bennett.
* preparing 2.6.24 release, fixed Python paths at the last moment fix someLIBXML2_2_6_24Daniel Veillard2006-04-281-2/+9
| | | | | | | * NEWS configure.in doc//*: preparing 2.6.24 release, fixed Python paths at the last moment * relaxng.c testapi.c tree.c: fix some comments Daniel
* fixing a deallocation problem in xmlRelaxNGParse() in case of errors,Daniel Veillard2006-04-131-3/+6
| | | | | | * relaxng.c: fixing a deallocation problem in xmlRelaxNGParse() in case of errors, should fix bug #338306 Daniel
* more cleanups based on coverity reports. DanielDaniel Veillard2006-03-091-23/+21
| | | | | | * relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based on coverity reports. Daniel
* trying to fix #331062, this is again a problem around interleave, there isDaniel Veillard2006-02-191-16/+53
| | | | | | | | * relaxng.c: trying to fix #331062, this is again a problem around interleave, there is no good fix unless reimplementing but this works around some cases and allow to validate in that case. Daniel
* Added xmlRelaxNGSetParserStructuredErrors() to the API.Kasimier T. Buchcik2006-01-091-0/+14
| | | | | * relaxng.c include/libxml/relaxng.h: Added xmlRelaxNGSetParserStructuredErrors() to the API.
* removed the error message removed 2 instability warnings from functionDaniel Veillard2005-10-181-1/+0
| | | | | | | | | | * runtest.c: removed the error message * relaxng.c xmlschemas.c: removed 2 instability warnings from function documentation * include/libxml/schemasInternals.h: changed warning about API stability * xmlregexp.c: trying to improve runtime execution of non-deterministic regexps and automata. Not fully finished but should be way better. Daniel
* real fix for #314881 and #314759 is was a bit more complex than initiallyDaniel Veillard2005-09-041-15/+29
| | | | | | | * relaxng.c: real fix for #314881 and #314759 is was a bit more complex than initially expected as ctxt->error == NULL had behaviour side effects at the compilation level itself. Daniel
* fixing yet another pattern induced XPath bug #314282 reverted back lastDaniel Veillard2005-09-041-1/+4
| | | | | | | * pattern.c xpath.c include/libxml/pattern.h: fixing yet another pattern induced XPath bug #314282 * relaxng.c: reverted back last change it was seriously broken Daniel
* structured error reporting problem with Relax-NG should fix #314881 andDaniel Veillard2005-09-031-4/+1
| | | | | | * relaxng.c: structured error reporting problem with Relax-NG should fix #314881 and #314759 Daniel
* fixed bug #307377 about validation of choices in list values. addedDaniel Veillard2005-08-101-2/+0
| | | | | | | | | * relaxng.c: fixed bug #307377 about validation of choices in list values. * test/relaxng/307377* result/relaxng/307377* Makefile.am runtest.c: added examples to the regression tests, problem is that streaming version gives slightly more informations. Daniel
* a lot of small cleanups based on Linus' sparse check output. DanielDaniel Veillard2005-07-281-4/+4
| | | | | | | | | * HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c runsuite.c runtest.c schematron.c testHTML.c testReader.c testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of small cleanups based on Linus' sparse check output. Daniel
* applied patch from Marcus Boerger to route relaxng and schemas errorDaniel Veillard2005-07-131-0/+20
| | | | | | | | | | * error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h include/libxml/xmlschemas.h: applied patch from Marcus Boerger to route relaxng and schemas error messages when using the reader through the structured interface if activated. * elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs to test. Daniel