- 30 Sep, 2019 4 commits
-
-
Jared Yanovich authored
Closes #109.
-
Nick Wellnhofer authored
-
Nick Wellnhofer authored
Conditional sections are only allowed in *external* parameter entities referenced from the internal subset.
-
Nick Wellnhofer authored
Avoid call stack overflow in deeply nested conditional sections. Found by OSS-Fuzz.
-
- 26 Sep, 2019 3 commits
-
-
Nick Wellnhofer authored
Closes #107.
-
Nick Wellnhofer authored
This is apparently another regex engine that was never used, see commit 81a8ec6b.
-
Nick Wellnhofer authored
Recent commit 1fbcf409 caused a use-after-free read because it didn't account for the fact that xmlTextReaderFreeDoc frees entities before freeing entity references via xmlTextReaderFreeNodeList. Found by OSS-Fuzz.
-
- 25 Sep, 2019 2 commits
-
-
Nick Wellnhofer authored
- One of the bug316338 test cases is expected to succeed. - Memory leak in testRegexp.c. - Refcount handling in xmlExpHashGetEntry.
-
Nick Wellnhofer authored
Fixes bug 649244: https://bugzilla.gnome.org/show_bug.cgi?id=649244 Closes #57.
-
- 23 Sep, 2019 3 commits
-
-
Nick Wellnhofer authored
Avoid call stack overflow when freeing deeply nested documents. Found by OSS-Fuzz.
-
Nick Wellnhofer authored
Avoid call stack overflow when freeing deeply nested documents.
-
Nick Wellnhofer authored
Split xmlParseElement into subfunctions. Use nameNsPush to store prefix, URI and nsNr on the heap, similar to the push parser. Closes #84.
-
- 20 Sep, 2019 2 commits
-
-
Nick Wellnhofer authored
-
Nick Wellnhofer authored
The file input callbacks try to read from stdin if "-" is passed as URL. This should never be done when loading indirect resources like external entities or XIncludes. Unfortunately, the stdin substitution happens deep inside the IO code, so we simply replace "-" with "./-" in specific locations. This issue also affects other users of the library like libxslt. Ideally, stdin should only be substituted on explicit request. But more intrusive changes could break existing code. Closes #90 and #102.
-
- 16 Sep, 2019 3 commits
-
-
Nick Wellnhofer authored
-
Nick Wellnhofer authored
libxml2 correctly rejects any4_0.xsd as invalid schema. I can't figure out what the intent behind this test case was. Simply adjust the expected output to match the current behavior. Closes #92.
-
Nick Wellnhofer authored
Non-compound (##local) and compound string atoms are always disjoint regardless of whether the compound atom is negated (##other). Closes #40.
-
- 13 Sep, 2019 6 commits
-
-
zhouzhongyuan authored
Merge request !45
-
Nick Wellnhofer authored
Fixes bug #794373 https://bugzilla.gnome.org/show_bug.cgi?id=794373 Also see merge request !42
-
Nick Wellnhofer authored
Fixes bug #616491 https://bugzilla.gnome.org/show_bug.cgi?id=616491 Based on merge request !41
-
zhouzhongyuan authored
Fixes bug #792181 https://bugzilla.gnome.org/show_bug.cgi?id=792181 Merge request !40
-
Zhongyuan Zhou authored
Merge request !39
-
Nick Wellnhofer authored
Closes #100
-
- 26 Aug, 2019 1 commit
-
-
Zhipeng Xie authored
When doc is NULL, namespace created in xmlTreeEnsureXMLDecl is bind to newDoc->oldNs, in this case, set newDoc->oldNs to NULL and free newDoc will cause a memory leak. Found with libFuzzer. Closes #82.
-
- 25 Aug, 2019 11 commits
-
-
Nick Wellnhofer authored
Thanks to Zhongyuan Zhou for the initial patch.
-
Zhongyuan Zhou authored
Closes #53.
-
kirin wang authored
-
Nick Wellnhofer authored
See https://bugzilla.gnome.org/show_bug.cgi?id=777139 Thanks to Zhongyuan Zhou for the initial merge request !34.
-
Jan Pokorný authored
...seems to { -> be to} add. Signed-off-by:
Jan Pokorný <jpokorny@redhat.com>
-
Jan Pokorný authored
Signed-off-by:
Jan Pokorný <jpokorny@redhat.com>
-
zhouzhongyuan authored
-
Jan Pokorný authored
Previously, test/relaxng/ambig_name-class2.xml would fail to validate against test/relaxng/ambig_name-class2.rng: > test/relaxng/ambig_name-class2.rng:4: > element attribute: Relax-NG parser error : > Found anyName attribute without oneOrMore ancestor > Relax-NG schema test/relaxng/ambig_name-class2.rng failed to compile Signed-off-by:
Jan Pokorný <jpokorny@redhat.com>
-
Jan Pokorný authored
Previously, test/relaxng/ambig_name-class.xml would fail to validate for a simple reason -- interleave within "open-name-class" context is supposed to be fine with whatever else is pending the consumption, since effectively, it's unrelated from a higher parsing perspective. Signed-off-by:
Jan Pokorný <jpokorny@redhat.com>
-
Jan Pokorný authored
At least when merely public API is to be leveraged, one cannot use xmlBufCreate function that would otherwise be a clear fit, and relying on some invariants wrt. how some other struct fields will get initialized along the construction/filling such parent struct and (ab)using that instead does not appear clever, either. Hence, instruct people what's the Right Thing for the moment, that is, make them use xmlNodeDumpOutput instead (together with likewise public xmlAllocOutputBuffer). Going forward, it's questionable what do with xmlBuf* family of functions that are once public, since they, for any practical purpose, cannot be used by the library clients (that's how I've run into this). Signed-off-by:
Jan Pokorný <jpokorny@redhat.com>
-
zhouzhongyuan authored
If a certain memory allocation fails, xmlXPathIdFunction would dereference a null pointer. Closes #77.
-
- 02 Aug, 2019 2 commits
-
-
Daniel Richard G. authored
AIX has a buggy ceil() function that does not handle negative-zero correctly. Closes #79.
-
Daniel Richard G. authored
Avoids undefined behavior causing problems on HP-UX and Solaris. Closes #78.
-
- 01 Aug, 2019 1 commit
-
-
Hugh McMaster authored
xml2-config currently outputs the results of '--cflags --libs' on two lines. Printing this information on one line is far more useful.
-
- 30 Jul, 2019 2 commits
-
-
zhouzhongyuan authored
-
zhouzhongyuan authored
-