Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| e314109a | 2024-02-16 15:42:38 | save: Don't write directly to internal buffer Make sure that OOM errors are reported. | ||
| d2b55a7a | 2024-01-05 20:31:10 | writer: Implement xmlTextWriterClose This function can be used to make sure that closing the output stream succeeded. Fixes #513. | ||
| 54c70ed5 | 2023-12-18 19:31:29 | parser: Improve error handling Introduce xmlCtxtSetErrorHandler allowing to set a structured error for a parser context. There already was the "serror" SAX handler but this always receives the parser context as argument. Start to use xmlRaiseMemoryError. Remove useless arguments from memory error functions. Rename xmlErrMemory to xmlCtxtErrMemory. Remove a few calls to xmlGenericError. Remove support for runtime entity debugging. | ||
| 9684e7a0 | 2023-12-10 18:29:44 | writer: Don't call SAX error handler directly | ||
| 5cffba83 | 2023-11-28 15:34:28 | Rework va_copy fallback va_copy is a macro, so it can be detected without a feature test. Fallback to __va_copy or memcpy. | ||
| a77f9ab8 | 2023-09-20 16:57:22 | globals: Don't include SAX2.h from globals.h | ||
| 550eaac6 | 2023-04-30 19:40:43 | writer: Add error check in xmlTextWriterEndDocument | ||
| dd3569ea | 2022-12-08 02:43:17 | Remove XMLDECL macro from .c files | ||
| ad338ca7 | 2022-09-01 01:18:30 | Remove explicit integer casts Remove explicit integer casts as final operation - in assignments - when passing arguments - when returning values Remove casts - to the same type - from certain range-bound values The main motivation is that these explicit casts don't change the result of operations and only render UBSan's implicit-conversion checks useless. Removing these casts allows UBSan to detect cases where truncation or sign-changes occur unexpectedly. Document some explicit casts as truncating and add a few missing ones. | ||
| 0f568c0b | 2022-08-26 01:22:33 | Consolidate private header files Private functions were previously declared - in header files in the root directory - in public headers guarded with IN_LIBXML - in libxml.h - redundantly in source files that used them. Consolidate all private header files in include/private. | ||
| 21561e83 | 2016-05-20 15:21:43 | Mark more static data as `const` Similar to 8f5710379, mark more static data structures with `const` keyword. Also fix placement of `const` in encoding.c. Original patch by Sarah Wilkin. | ||
| 346c3a93 | 2022-02-20 18:46:42 | Remove elfgcchack.h The same optimization can be enabled with -fno-semantic-interposition since GCC 5. clang has always used this option by default. | ||
| d8999b1d | 2019-10-14 17:04:04 | Fix error code in xmlTextWriterStartDocument Return XML_ERR_UNSUPPORTED_ENCODING if no encoding handler could be found. Fixes bug #521808: https://bugzilla.gnome.org/show_bug.cgi?id=521808 Resolves !53. | ||
| 2a350ee9 | 2019-09-30 17:04:54 | Large batch of typo fixes Closes #109. | ||
| 86615e43 | 2017-11-09 17:47:47 | Fix IO callback signatures | ||
| 4dd6d7a5 | 2017-11-09 17:28:00 | Fix list callback signatures Make sure that all parameters and return values of list 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. Also change the `user` parameter type from `const void *` to `void *`. | ||
| d2c329a9 | 2017-10-21 13:49:31 | Fix -Wimplicit-fallthrough warnings Add "falls through" comments to quench implicit-fallthrough warnings which are enabled by -Wextra under GCC 7. | ||
| 4472c3a5 | 2016-05-13 15:13:17 | Fix some format string warnings with possible format string vulnerability 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. | ||
| c9ecf45d | 2014-02-08 02:22:35 | Fix xmlTextWriterWriteElement when a null content is given | ||
| 0f7a26d8 | 2013-12-12 15:04:43 | Improve va_list portability Support for va_list declared as an array (cannot be referenced explicitly) | ||
| f8e3db04 | 2012-09-11 13:26:36 | Big space and tab cleanup Remove all space before tabs and space and tabs at end of lines. | ||
| 429d3a0a | 2012-09-11 11:50:25 | Allow to set the quoting character of an xmlWriter It's otherwise impossible to set the quoting character of attribute values of an xmlWriter. | ||
| dbf5411b | 2012-07-16 14:54:45 | Convert the writer to new output buffer and save APIs Only a handful of places had to be converted for xmlBuf and the new saving entry point. | ||
| 798743a4 | 2009-06-19 13:54:25 | * parser.c: use options from current parser context when creating a parser context within xmlParseCtxtExternalEntity * xmlwriter.c: fix error message when unable to create output file | ||
| bccae2d2 | 2009-06-04 11:22:45 | * c14n.c debugXML.c doc/examples/io2.c parser.c schematron.c valid.c xmlschemas.c xmlwriter.c xpath.c: use %s to printf string patch by Christian Persch, fixes #581612 | ||
| cb0ae191 | 2009-02-20 08:40:55 | cleanups and error reports when xmlTextWriterVSprintf fails, by Jinmei * xmlwriter.c: cleanups and error reports when xmlTextWriterVSprintf fails, by Jinmei Tatuya daniel svn path=/trunk/; revision=3817 | ||
| eb0a0b2e | 2009-02-20 08:19:53 | remove a couple of leaks on errors reported by Jinmei Tatuya daniel * xmlwriter.c: remove a couple of leaks on errors reported by Jinmei Tatuya daniel svn path=/trunk/; revision=3816 | ||
| 5a7d8bdf | 2008-12-27 13:17:43 | xmlwriter.c: fix indenting in xmlTextWriterFullEndElement for bug# 554353. svn path=/trunk/; revision=3805 | ||
| ccc476f1 | 2008-03-04 13:19:49 | patch from Alex Khesin fixing CDATA output after a text node. fixed the * xmlwriter.c: patch from Alex Khesin fixing CDATA output after a text node. * parser.c: fixed the comment for xmlParserCleanup * globals.c: fixed indentation Daniel svn path=/trunk/; revision=3699 | ||
| 3ff24115 | 2008-02-13 10:17:41 | applied patch from Alfred Mickautsch to flush the output at the end of * xmlwriter.c: applied patch from Alfred Mickautsch to flush the output at the end of document. Daniel svn path=/trunk/; revision=3691 | ||
| 7e26fb4b | 2008-01-09 02:19:50 | fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena, * xmlwriter.c: fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena, should fix #508156 Daniel svn path=/trunk/; revision=3668 | ||
| caa1951d | 2007-07-04 15:42:46 | patch from Dodji Seketeli to avoid a leak on repeated uses of * xmlwriter.c: patch from Dodji Seketeli to avoid a leak on repeated uses of xmlTextWriterStartDocument() Daniel svn path=/trunk/; revision=3642 | ||
| b8769d6f | 2007-06-08 08:50:47 | fixed problem with namespace declaration being written more than once per * xmlwriter.c: fixed problem with namespace declaration being written more than once per element start tag svn path=/trunk/; revision=3623 | ||
| c1099be5 | 2007-01-31 18:38:56 | repositioned #include for libxml.h to avoid compilation error on some * testAutomata.c, testRegexp.c, testThreads.c, testThreadsWin32.c, xmlwriter.c: repositioned #include for libxml.h to avoid compilation error on some architectures (bug #398277) svn path=/trunk/; revision=3578 | ||
| 9db68f0c | 2006-08-16 22:48:51 | Add a document to the xmlwriter structure and pass document when writing * xmlwriter.c: Add a document to the xmlwriter structure and pass document when writing attribute content for encoding support. | ||
| 02c1f232 | 2006-04-27 08:10:25 | patch from Jason Viers for line breaks after EndPI Daniel * xmlwriter.c: patch from Jason Viers for line breaks after EndPI Daniel | ||
| ffe47feb | 2005-12-09 17:52:21 | Insert space between pubid and sysid when both passed to * xmlwriter.c: Insert space between pubid and sysid when both passed to xmlTextWriterStartDTD and indenting not being used. Remove no longer used Mem callbacks. | ||
| a44f234d | 2005-11-09 18:03:45 | function consolidation when writing to xmlBuffer. Return error condition * xmlIO.c xmlwriter.c: function consolidation when writing to xmlBuffer. Return error condition not len if xmlwriter fails writing to buffer. | ||
| f4caa5e6 | 2005-10-20 09:04:05 | fixed problem in xmlTextWriterVSprintf caused by misuse of vsnprintf added * xmlwriter.c: fixed problem in xmlTextWriterVSprintf caused by misuse of vsnprintf * configure.in, config.h.in: added a configuration check for va_copy and added a define for VA_COPY for xmlwriter.c fix * parser.c: fixed problem with CRLF split between chunks (bug #319279) (fix provided by Brion Vibber) | ||
| 75e389d4 | 2005-07-29 22:02:24 | more cleanups based on sparse reports, added "make sparse" Daniel * Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c xmlwriter.c: more cleanups based on sparse reports, added "make sparse" Daniel | ||
| ffa3c749 | 2005-07-21 13:24:09 | applied a patch from Marcus Boerger to fix problems with calling * error.c globals.c parser.c runtest.c testHTML.c testSAX.c threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlerror.h include/libxml/xmlexports.h include/libxml/xmlschemas.h: applied a patch from Marcus Boerger to fix problems with calling conventions on Windows this should fix #309757 Daniel | ||
| 5d4644ef | 2005-04-01 13:11:58 | revamped the elfgcchack.h format to cope with gcc4 change of aliasing * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel | ||
| 614fdc13 | 2005-02-23 14:05:37 | applied a patch from Rob Richards fixing a couple of bugs in the writer * xmlwriter.c: applied a patch from Rob Richards fixing a couple of bugs in the writer Daniel | ||
| bd8fb0ad | 2005-02-21 13:49:46 | applied patch from Rob Richards to fix a problem with * xmlwriter.c: applied patch from Rob Richards to fix a problem with xmlTextWriterStartAttributeNS Daniel | ||
| d0cf7f6e | 2004-11-09 16:17:02 | integrated in "make tests" added -q option, and more conditional features * Makefile.am gentest.py testapi.c: integrated in "make tests" added -q option, and more conditional features fixes * catalog.c debugXML.c parser.c testThreads.c xmllint.c xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h include/libxml/debugXML.h: various compilation and conditional cleanups. * doc/*: regenerated Daniel | ||
| a521d287 | 2004-11-09 14:59:59 | better handling of conditional features more testing on parser contexts * gentest.py testapi.c: better handling of conditional features * HTMLparser.c SAX2.c parserInternals.c xmlwriter.c: more testing on parser contexts closed leaks, error messages Daniel | ||
| d5cc0f7f | 2004-11-06 19:24:28 | augmented types supported a number of new bug fixes and documentation * gentest.py testapi.c: augmented types supported * HTMLtree.c tree.c xmlreader.c xmlwriter.c: a number of new bug fixes and documentation updates. Daniel | ||
| dd6d3008 | 2004-11-03 14:20:29 | more fixes and extending the tests coverage adding a type init interface * gentest.py testapi.c: more fixes and extending the tests coverage * relaxng.c include/libxml/relaxng.h: adding a type init interface * include/libxml/xmlerror.h parser.c xmlreader.c xmlwriter.c: more cleanups and bug fixes raised by the regression tests Daniel | ||
| e43cc574 | 2004-11-03 11:50:29 | more fixes and extending the tests coverage more hardeing of APIs skip * gentest.py testapi.c: more fixes and extending the tests coverage * xmlwriter.c list.c: more hardeing of APIs * doc/apibuild.py: skip testapi.c when scanning the C files. Daniel | ||
| 03a53c34 | 2004-10-26 16:06:51 | added checking for names values and dictionnaries generates a tons of * debugXML.c include/libxml/xmlerror.h: added checking for names values and dictionnaries generates a tons of errors * SAX2.ccatalog.c parser.c relaxng.c tree.c xinclude.c xmlwriter.c include/libxml/tree.h: fixing the errors in the regression tests Daniel | ||
| 47a31884 | 2004-09-11 16:09:09 | changed char array initialisation to avoid a complaint from some * xmlwriter.c: changed char array initialisation to avoid a complaint from some compiler(s) (bug 152308) | ||
| 62040be3 | 2004-05-17 03:17:26 | avoid returning default namespace when searching from an attribute reverse * tree.c: avoid returning default namespace when searching from an attribute * entities.c xmlwriter.c: reverse xmlEncodeSpecialChars() behaviour back to escaping " since the normal serialization routines do not use it anymore, should close bug #134477 . Tried to make the writer avoid it too but it didn't work. Daniel | ||
| 87640d5f | 2004-04-17 14:58:15 | minor warning cleanup (no change to logic) fixed return value for internal * xmlschemas.c, xmlwriter.c, doc/examples/parse4.c, doc/examples/io2.c: minor warning cleanup (no change to logic) * xinclude: fixed return value for internal function xmlXIncludeLoadFallback (now always 0 or -1) | ||
| 500a1de5 | 2004-03-22 15:22:58 | applied patch from Alfred Mickautsch for better DTD support. fixed bug * xmlwriter.c include/libxml/xmlwriter.h doc/* : applied patch from Alfred Mickautsch for better DTD support. * SAX2.c HTMLparser.c parser.c xinclude.c xmllint.c xmlreader.c xmlschemas.c: fixed bug #137867 i.e. fixed properly the way reference counting is handled in the XML parser which had the side effect of removing a lot of hazardous cruft added to try to fix the problems associated as they popped up. * xmlIO.c: FILE * close fixup for stderr/stdout Daniel | ||
| ab69f366 | 2004-02-17 11:40:32 | applied update from Alfred Mickautsch and the added patch from Lucas * xmlwriter.c include/libxml/xmlwriter.h: applied update from Alfred Mickautsch and the added patch from Lucas Brasilino Daniel | ||
| 1ce3c802 | 2004-02-06 13:03:38 | fixed problem with return value of xmlTextWriterWriteIndent() (bug 133297) * xmlwriter.c: fixed problem with return value of xmlTextWriterWriteIndent() (bug 133297) | ||
| b9079053 | 2004-02-03 04:20:18 | enhanced output indenting (bug 133264) * xmlwriter.c: enhanced output indenting (bug 133264) | ||
| a9c612c3 | 2004-02-01 10:04:05 | moved serialization of attribute text data (xmlSerializeContent) into a * tree.c, include/libxml/tree.h: moved serialization of attribute text data (xmlSerializeContent) into a separate routine (xmlSerializeTxtContent) so it can be used by xmlwriter.c * xmlwriter.c: changed handling of attribute string to use the routine above (fixed bug 131548) | ||
| 4773df2a | 2004-01-23 13:15:13 | added io1.c an example ox xmlIO usage and io1.res test result, fixed a * doc/examples/*: added io1.c an example ox xmlIO usage and io1.res test result, fixed a awful lot of memory leaks showing up in testWriter.c, changed the examples and the Makefiles to test memory leaks. * xmlwriter.c: fixed a memory leak * Makefile.am: run the doc/examples regression tests as part of make tests * xpath.c include/libxml/xpath.h: added xmlXPathCtxtCompile() to compile an XPath expression within a context, currently the goal is to be able to reuse the XSLT stylesheet dictionnary, but this opens the door to others possible optimizations. * dict.c include/libxml/dict.h: added xmlDictCreateSub() which allows to build a new dictionnary based on another read-only dictionnary. This is needed for XSLT to keep the stylesheet dictionnary read-only while being able to reuse the strings for the transformation dictionnary. * xinclude.c: fixed a dictionnar reference counting problem occuring when document parsing failed. * testSAX.c: adding option --repeat for timing 100times the parsing * doc/* : rebuilt all the docs Daniel | ||
| 20c5e787 | 2004-01-21 09:57:31 | applied patch from Alfred Mickautsch fixing a memory leak reported on the * xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory leak reported on the list. Daniel | ||
| 5d4cba41 | 2004-01-06 15:19:12 | fixed Bug130593 fixed compilation warning * configure.in: fixed Bug130593 * xmlwriter.c: fixed compilation warning | ||
| 751c9ec6 | 2004-01-05 13:05:58 | applied patch from Lucas Brasilino fixing an indent problem. Daniel * xmlwriter.c: applied patch from Lucas Brasilino fixing an indent problem. Daniel | ||
| 2cca446b | 2004-01-02 20:04:23 | applied the patch from Lucas Brasilino to add indentation support to * include/libxml/xmlwriter.h xmlwriter.c: applied the patch from Lucas Brasilino to add indentation support to xmlWriter Daniel | ||
| 10c08c7d | 2003-12-09 15:14:26 | applied the patch to xmlTextWriterStartPI() suggested by Daniel Schulman * xmlwriter.c: applied the patch to xmlTextWriterStartPI() suggested by Daniel Schulman in #128313 Daniel | ||
| 1e90661b | 2003-12-05 14:57:46 | cleanup the make rebuild in doc, this include new directive to stop * globals.c xmlwriter.c doc/apibuild.py include/libxml/globals.h include/libxml/pattern.h include/libxml/schemasInternals.h include/libxml/xmlexports.h include/libxml/xmlwriter.h: cleanup the make rebuild in doc, this include new directive to stop documentation warnings * doc/* doc/html/*: rebuilt the docs * pattern.c xmlreader.c include/libxml/pattern.h include/libxml/xmlreader.h: adding xmlTextReaderPreservePattern() to save nodes while scanning the tree with the reader, cleanup the way element were freed, and xmlTextReaderPreserve() implementation, the API might change for namespace binding support when compiling patterns. * doc/examples/*: added reader3.c exposing the xmlTextReaderPreserve() Daniel | ||
| b23de5ad | 2003-11-27 18:36:46 | added IN_LIBXML macro | ||
| 1d913863 | 2003-11-21 00:28:39 | applied patch from Robert Stepanek to start import os schemas support, * xmlschemas.c: applied patch from Robert Stepanek to start import os schemas support, cleaned up stuff and the patch. * test/schemas/import0_0.* result/schemas/import0_0_0*: added test to regression, fixed a few regressions too. Daniel | ||
| 5841f0e0 | 2003-11-20 11:59:09 | applied patch from Alfred Mickautsch, bugfixes and comments added his test * xmlwriter.c include/libxml/xmlwriter.h: applied patch from Alfred Mickautsch, bugfixes and comments * doc/examples/*: added his test as the xmlWriter example * doc/html/ doc/*.html: this resulted in some improvements * include/libxml/hash.h: fixed an inclusion problem when <libxml/hash.h> wasn't preceeded by <xml/parser.h> Daniel | ||
| b1d53165 | 2003-11-18 06:54:40 | minor enhancement to prevent comment with unreferenced variable. edited * genChRanges.py, chvalid.c, include/libxml/chvalid.h: minor enhancement to prevent comment with unreferenced variable. * threads.c xmlreader.c xmlwriter.c: edited some comments to improve auto-generation of documentation * apibuild.py: minor change to an error message | ||
| 929714b7 | 2003-10-22 12:34:36 | applied patch from Alfred Mickautsch fixing #125180 Daniel * xmlwriter.c: applied patch from Alfred Mickautsch fixing #125180 Daniel | ||
| 1d211e22 | 2003-10-20 22:32:39 | added the xmlWriter module contributed by Alfred Mickautsch added room for * configure.in xmlwriter.c Makefile.am include/libxml/xmlwriter.h include/libxml/Makefile.am include/libxml/xmlversion.h.in: added the xmlWriter module contributed by Alfred Mickautsch * include/libxml/tree.h: added room for line and extra information * xmlreader.c python/tests/reader6.py: bugfixing some problem some of them introduced in September * win32/libxml2.def.src doc/libxml2-api.xml: regenerated the API Daniel |