| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Add "falls through" comments to quench implicit-fallthrough warnings
which are enabled by -Wextra under GCC 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.
|
|
|
|
|
|
| |
Make sure that the variables are declared at the top of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=767063
|
|
|
|
|
|
|
| |
For https://bugzilla.gnome.org/show_bug.cgi?id=761029
adds a new xmlEscapeFormatString() function to escape composed format
strings
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
For https://bugzilla.gnome.org/show_bug.cgi?id=565219
The code was imply missing even if simple, added a few regression
tests.
|
|
|
|
|
|
| |
As detected by Coverity (CIDs 60467–60472).
https://bugzilla.gnome.org/show_bug.cgi?id=739220
|
|
|
|
|
| |
For https://bugzilla.gnome.org/show_bug.cgi?id=733710
Reported by Gaurav but with slightly different fixes
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
For https://bugzilla.gnome.org/show_bug.cgi?id=733042
the states argument of xmlRelaxNGAddStates() ought to be checked too
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=710744
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=705388
Code needed a bit of cleanup
|
| |
|
|
|
|
| |
Remove all space before tabs and space and tabs at end of lines.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
When overriding during include, children of the root
node are scanned. But the root node was gotten with
doc->children, instead of xmlDocGetRootElement.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
* relaxng.c: fix windows build
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
|
| |
* SAX2.c encoding.c parser.c xmlschemas.c: a few more safety checks
* relaxng.c: remove an unused intitialization
|
|
|
|
|
| |
* encoding.c parser.c relaxng.c runsuite.c tree.c xmlreader.c
xmlschemas.c: nothing really serious but better safe than sorry
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
* relaxng.c: don't assume there is a single define under a optional
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* relaxng.c: refs from externalRef subschemas need to be added to
the main schemas. Also fix a couple of problems with dangling
references
|
|
|
|
|
| |
* relaxng.c: in some case we were not freeing the right data, also
cleanup a few other things
|
|
|
|
| |
svn path=/trunk/; revision=3749
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* relaxng.c: fixed bug #407436 a crash in a specific case of
Relax-NG validation
Daniel
svn path=/trunk/; revision=3629
|
|
|
|
|
|
| |
* relaxng.c: fix a Relax-NG bug related to element content processing,
fixes bug #302836
Daniel
|
|
|
|
|
| |
* relaxng.c: Fixed compilation error (bug 340765) reported by
dmacks with patch supplied by Graham Bennett.
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* relaxng.c: fixing a deallocation problem in xmlRelaxNGParse()
in case of errors, should fix bug #338306
Daniel
|
|
|
|
|
|
| |
* relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based
on coverity reports.
Daniel
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* relaxng.c include/libxml/relaxng.h: Added
xmlRelaxNGSetParserStructuredErrors() to the API.
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* relaxng.c: structured error reporting problem with Relax-NG
should fix #314881 and #314759
Daniel
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|