summaryrefslogtreecommitdiff
path: root/catalog.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix hash callback signaturesNick Wellnhofer2017-11-091-24/+26
| | | | | | | | | 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-0/+1
| | | | | Add "falls through" comments to quench implicit-fallthrough warnings which are enabled by -Wextra under GCC 7.
* Fix some format string warnings with possible format string vulnerabilityDavid Kilzer2016-05-231-1/+1
| | | | | | | | 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 typos: PATH_{ SEAPARATOR -> SEPARATOR }Jan Pokorný2016-04-151-4/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Fix an fd leak in an error caseDaniel Veillard2014-02-061-0/+5
|
* Avoid a deadcode in catalog.cDaniel Veillard2013-09-301-2/+2
| | | | For https://bugzilla.gnome.org/show_bug.cgi?id=703504
* Few cleanup patches for WindowsDenis Pauk2013-03-271-4/+6
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=690878 provided by Cole <coleharrisjohnson@gmail.com>
* Big space and tab cleanupDaniel Veillard2012-09-111-42/+42
| | | | Remove all space before tabs and space and tabs at end of lines.
* Cleanup function xmlBufResetInput() to set input from BufferDaniel Veillard2012-07-231-3/+1
| | | | | | | | | | This was scattered in a number of modules, xmlParserInputPtr have usually their base, cur and end pointer set from an xmlBuf used as input. * buf.c buf.h: add a new function implementing this setup * parser.c HTMLparser.c catalog.c parserInternals.c xmlreader.c use the new function instead of digging into the buffer in all those modules
* Convert catalog code to the new input buffersDaniel Veillard2012-07-231-4/+5
| | | | Only one place where the buffers fields where accessed directly
* Avoid an extra operationDaniel Veillard2012-05-211-2/+0
| | | | | In the catalog code, tsan also complained of testing the variable without locking and that was done a few lines below
* Avoid a descriptor leak in catalog loading codeCarlo Bramini2010-10-141-5/+2
| | | | File descriptors could be leaked in xmlLoadFileContent()
* apply a couple of fixes based on a Coverity report forwarded by DerrickDaniel Veillard2008-06-101-1/+3
| | | | | | | | | | | * catalog.c: apply a couple of fixes based on a Coverity report forwarded by Derrick Price. * VxWorks/README VxWorks/Makefile VxWorks/build.sh: instructions Makefile, and shell script to build on VxWorks 6.4+ provided by Jim Wert. Daniel svn path=/trunk/; revision=3747
* fixed bug #383687, some case of recursion on next were not caught in theDaniel Veillard2007-06-121-6/+17
| | | | | | | | * catalog.c: fixed bug #383687, some case of recursion on next were not caught in the catalog code. Daniel svn path=/trunk/; revision=3628
* applied patch from Andreas Stricke to ease the compilation on Windows CEDaniel Veillard2007-04-171-0/+6
| | | | | | | | | * catalog.c libxml.h win32/wince/wincecompat.h win32/wince/wincecompat.c xmlIO.c nanohttp.c nanoftp.c trio.c triostr.c triostr.h: applied patch from Andreas Stricke to ease the compilation on Windows CE Daniel svn path=/trunk/; revision=3600
* "xmllint unusable on win32" so applied a libxml2 patch from ChristianDaniel Veillard2007-04-171-2/+19
| | | | | | | | * xmllint.c catalog.c: "xmllint unusable on win32" so applied a libxml2 patch from Christian Ehrlicher Daniel svn path=/trunk/; revision=3599
* more cleanups based on coverity reports. DanielDaniel Veillard2006-03-091-7/+1
| | | | | | * SAX2.c catalog.c encoding.c entities.c example/gjobread.c python/libxml.c: more cleanups based on coverity reports. Daniel
* Martin Cole pointed out a bug in xmlCatalogAdd() if /etc/xml/catalogDaniel Veillard2006-02-241-0/+1
| | | | | | * catalog.c: Martin Cole pointed out a bug in xmlCatalogAdd() if /etc/xml/catalog doesn't exist. Daniel
* improve catalog debugging message patch from Rick Jones DanielDaniel Veillard2006-02-231-1/+2
| | | | | * catalog.c: improve catalog debugging message patch from Rick Jones Daniel
* revamped the elfgcchack.h format to cope with gcc4 change of aliasingDaniel Veillard2005-04-011-0/+2
| | | | | | | | | | | * 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
* integrated in "make tests" added -q option, and more conditional featuresDaniel Veillard2004-11-091-0/+2
| | | | | | | | | | | * 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
* fixed problem with NULL entry (bug 157407) fixed a couple of warnings (noWilliam M. Brack2004-11-051-17/+19
| | | | | * catalog.c: fixed problem with NULL entry (bug 157407) * xpath.c: fixed a couple of warnings (no change to logic)
* added checking for names values and dictionnaries generates a tons ofDaniel Veillard2004-10-261-0/+1
| | | | | | | | * 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
* fix small leakWilliam M. Brack2004-10-061-0/+1
|
* small change to last fix, to get xml:base rightWilliam M. Brack2004-10-061-2/+7
| | | | * catalog.c: small change to last fix, to get xml:base right
* added code to handle <group>, including dumping to output (bug 151924).William M. Brack2004-10-061-122/+175
| | | | | | | * catalog.c: added code to handle <group>, including dumping to output (bug 151924). * xmlcatalog.c, xmlstring.c, parser.c: minor compiler warning cleanup (no change to logic)
* applied patches from Peter Breitenlohner to fix handling of white spaceDaniel Veillard2004-07-161-7/+109
| | | | | | | * catalog.c test/catalogs/white* result/catalogs/white*: applied patches from Peter Breitenlohner to fix handling of white space normalization in public ids and add tests Daniel
* revert 2 parts of the patch, DanielDaniel Veillard2004-06-141-2/+62
|
* patch from Igor for the default catalog path on Windows DanielDaniel Veillard2004-06-141-62/+37
| | | | | * catalog.c: patch from Igor for the default catalog path on Windows Daniel
* reverted the broken change. DanielDaniel Veillard2004-05-181-2/+2
| | | | | * catalog.c: reverted the broken change. Daniel
* a couple of large static variable which should really not be declared asDaniel Veillard2004-05-161-2/+2
| | | | | | * catalog.c: a couple of large static variable which should really not be declared as such cluttered the .bss section. Daniel
* fixes the comments for xmlCatalogDump and xmlDumpACatalog rebuilt toDaniel Veillard2004-03-291-2/+2
| | | | | | * catalog.c: fixes the comments for xmlCatalogDump and xmlDumpACatalog * doc/*: rebuilt to update Daniel
* applied a cleanup patch from Peter Breitenlohner removed a doc buildDaniel Veillard2004-02-251-26/+26
| | | | | | | | * Makefile.am catalog.c configure.in: applied a cleanup patch from Peter Breitenlohner * tree.c: removed a doc build warning by fixing a param comment * doc/* : rebuilt the docs Daniel
* fixed the main issues reported by Peter Breitenlohner cleanup speedupDaniel Veillard2004-02-251-25/+31
| | | | | | | * catalog.c: fixed the main issues reported by Peter Breitenlohner * parser.c: cleanup * valid.c: speedup patch from Petr Pajas Daniel
* minor error cleanup for gcc-3.3.[12] compilation warnings.William M. Brack2003-11-141-1/+1
| | | | | | * catalog.c,relaxng.c,testAutomata.c,xpointer.c,genChRanges.py, chvalid.c,include/libxml/chvalid.h,doc/examples/test1.c: minor error cleanup for gcc-3.3.[12] compilation warnings.
* Changed all (?) occurences where validation macros (IS_xxx) hadWilliam M. Brack2003-10-181-6/+6
| | | | | | | | | | | | * include/libxml/parserInternals.h HTMLparser.c HTMLtree.c SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c xpath.c: Changed all (?) occurences where validation macros (IS_xxx) had single-byte arguments to use IS_xxx_CH instead (e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of many warning messages on certain platforms, and also high- lights places in the library which may need to be enhanced for proper UTF8 handling.
* enhanced macros to avoid breaking ABI from previous versions. modified toWilliam M. Brack2003-10-181-1/+1
| | | | | | | | | | | | * genChRanges.py, chvalid.c, include/libxml/chvalid.h, include/libxml/parserInternals.h: enhanced macros to avoid breaking ABI from previous versions. * catalog.c, parser.c, tree.c: modified to use IS_* macros defined in parserInternals.h. Makes maintenance much easier. * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid compilation warnings * configuration.in: fixed pushHTML test error; enhanced for better devel (me) testing
* new files for a different method for doing range validation of characterWilliam M. Brack2003-10-111-4/+4
| | | | | | | | | | * genChRange.py, chvalid.def, chvalid.c, include/libxml/chvalid.h: new files for a different method for doing range validation of character data. * Makefile.am, parserInternals.c, include/libxml/Makefile.am, include/libxml/parserInternals.h: modified for new range method. * catalog.c: small enhance for warning message (using one of the new range routines)
* Setting up the framework for structured error reporting, touches a lot ofDaniel Veillard2003-10-101-2/+2
| | | | | | | | | | | * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
* comment fix migrating the catalog code to the new infrastructure DanielDaniel Veillard2003-10-091-31/+69
| | | | | | | * xinclude.c: comment fix * catalog.c include/libxml/xmlerror.h: migrating the catalog code to the new infrastructure Daniel
* Okay this is scary but it is just adding a configure option to disableDaniel Veillard2003-09-291-0/+6
| | | | | | | | | | | | | | | | | | * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
* trying to fix #118754 of possible recursion in the catalogs. NotDaniel Veillard2003-08-041-3/+32
| | | | | | | | | * catalog.c: trying to fix #118754 of possible recursion in the catalogs. Not fantastically happy about the current fix since it's likely to break under very thread intensive concurrent access to the catalog. Better solution might to keep the depth an extra argument to the resolution functions. Daniel
* Fixed multithreading problemWilliam M. Brack2003-07-041-1/+3
|
* removed multiple warning, this fixed a bug and should close #111574 DanielDaniel Veillard2003-05-091-1/+1
| | | | | | * DOCBparser.c catalog.c parser.c relaxng.c: removed multiple warning, this fixed a bug and should close #111574 Daniel
* try to find more places where xmlCanonicPath() must be used to convertDaniel Veillard2003-04-231-1/+1
| | | | | | | * DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find more places where xmlCanonicPath() must be used to convert filenames to URLs, trying to fix #111088 Daniel
* added xmlMallocAtomic() to be used when allocating blocks which do notDaniel Veillard2003-04-191-2/+2
| | | | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
* added support for large file, tested with a 3+GB instance, and someDaniel Veillard2003-04-181-0/+5
| | | | | | | | | * libxml.h include/libxml/parser.h parser.c xmlIO.c DOCBparser.c: added support for large file, tested with a 3+GB instance, and some cleanup. * catalog.c: added a TODO * Makefile.am: added some "make tests" comments Daniel
* fixed Red Hat bug #86118 use libxml2.spec instead of libxml.spec fixedDaniel Veillard2003-03-211-1/+1
| | | | | | | | | | | * configure.in Makefile.am: fixed Red Hat bug #86118 use libxml2.spec instead of libxml.spec * relaxng.c: fixed some of the error reporting excessive verbosity * catalog.c debugXML.c valid.c xmlreader.c xmlschemas.c xpath.c xmlschemastypes.c: removed some warnings from gcc * doc/libxml2-api.xml: rebuilt Daniel
* fixed bug #104817 with delegateURI fixing bugs #104123 and #104125 DanielDaniel Veillard2003-02-041-1/+2
| | | | | | * catalog.c: fixed bug #104817 with delegateURI * xpath.c: fixing bugs #104123 and #104125 Daniel
* a bit more cleanup DanielDaniel Veillard2002-12-111-15/+16
| | | | | * catalog.c doc/libxml2-api.xml: a bit more cleanup Daniel