1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 13:25:05 +03:00
Commit Graph

2924 Commits

Author SHA1 Message Date
Kasimier T. Buchcik
64dc4d2c5b Fixed date-time related validation (reported by David Crossley, bug
* xmlschemastypes.c: Fixed date-time related validation
  (reported by David Crossley, bug #300576).
2005-04-19 15:58:31 +00:00
Kasimier T. Buchcik
c0e833f002 Removed 5 unnecessary dereferences (reported by Andriy, bug #301074).
* xmlschemas.c xmlregexp.c: Removed 5 unnecessary
  dereferences (reported by Andriy, bug #301074).
2005-04-19 15:02:20 +00:00
William M. Brack
3d42666362 Added some code to avoid integer overflow for ceil, floor and round
* xpath.c: Added some code to avoid integer overflow for
  ceil, floor and round functions (bug 301162)
2005-04-19 14:40:28 +00:00
Kasimier T. Buchcik
187ea5f657 Removed workaround for bug #172215, since it does more harm in some
* xmlschemas.c: Removed workaround for bug #172215, since it
  does more harm in some scenarios. Added some of the
  "Particle Restriction OK" constraints - not yet enabled.
2005-04-19 11:25:43 +00:00
Kasimier T. Buchcik
eabc1d6558 Added test results.
* result/schemas/changelog093*: Added test results.
2005-04-18 11:04:28 +00:00
Kasimier T. Buchcik
c872afbd82 Added output of canonical values in identity-constraint error messages.
* xmlschemas.c: Added output of canonical values in
  identity-constraint error messages.
* xmlschemastypes.c include/libxml/xmlschemastypes.h:
  Added xmlSchemaGetCanonValueWhtsp() to the API.
  Further enhancement of the canonical value
  conversion.
* test/schemas/changelog093_0.*: Added test with an XSD
  submitted by Randy J. Ray.
2005-04-18 10:57:04 +00:00
William M. Brack
d6e347e865 Applied Daniel's fix for memory leak in dtd prefix (bug 300550). minor
* valid.c: Applied Daniel's fix for memory leak in dtd
  prefix (bug 300550).
* xpath.c: minor change to comment only
2005-04-15 01:34:41 +00:00
Daniel Veillard
18ffe20c9e added the call to the breakpoint routine when a monitored block is
* xmlmemory.c: added the call to the breakpoint routine
  when a monitored block is reallocated or freed
Daniel
2005-04-14 17:50:59 +00:00
Daniel Veillard
351f2d6e1a applied patch from Aron Stansvik for bug #172525 about HTTP query string
* nanohttp.c: applied patch from Aron Stansvik for bug #172525
  about HTTP query string parameter being lost
Daniel
2005-04-13 02:55:12 +00:00
Daniel Veillard
f9cf6f5a01 applied patch from Brent Hendricks adding namespace removal at the python
* python/libxml.c python/libxml.py: applied patch from Brent Hendricks
  adding namespace removal at the python level #300209
* python/tests/Makefile.am python/tests/nsdel.py: added the regression
  test
Daniel
2005-04-12 01:02:29 +00:00
Daniel Veillard
d49370e9c5 Updated Steve Ball and Mac OS X binaries URL, Daniel 2005-04-11 23:28:16 +00:00
William M. Brack
2c19a7bf2e fixed several places where memory cleanup was not properly done after an
* xpath.c: fixed several places where memory cleanup was not
  properly done after an error was detected (problem was
  reported on the mailing list by Pawel Palucha)
2005-04-10 01:03:23 +00:00
Kasimier T. Buchcik
016d92e30b Added substitution group constraints; changed the build of the
* xmlschemas.c: Added substitution group constraints; changed
  the build of the pre-computed substitution groups. Channeled
  errors during xsi assembling of schemas to the validation
  context. Fixed a big memory leak, which occured when using
  IDCs: the precomputed value of attributes was not freed if
  the attribute did not resolve to an IDC field (discovered
  with the help of Randy J. Ray's schema, posted to the
  xmlschema-dev maling list).
2005-04-08 20:08:40 +00:00
Kasimier T. Buchcik
1a99a39745 Added "Particle correct 2" to parsing of model groups. Added handling
* xmlschemas.c: Added "Particle correct 2" to parsing of model groups.
  Added handling substitution groups inside <choice> and <sequence>;
  for <all> this is not supported yet. Changed circular checks for
  model groups definitions. "memberTypes" are processed at different
  levels now: component resolution first, construction later; this
  goes hand in hand with a global change to handle component
  resolution in a distinct phase. Fixed invalid default values for
  elements to mark the schema as invalid; this just resulted in an
  error report previously, but the schema was handled as valid.
  Separated the assignment of the model groups to referencing
  model group definition references (i.e. particles); this was
  needed to perform the circularity check for model group definitions.
  Added "Element Declaration Properties Correct (e-props-correct)"
  constraints. Separated component resolution for simple/complex
  types.
* include/libxml/schemasInternals.h: Added a flag for substitution
  group heads.
2005-04-08 11:23:56 +00:00
Daniel Veillard
142fb21c10 Updated links to bindings, daniel 2005-04-07 12:48:10 +00:00
Igor Zlatkovic
f12177d977 make install cleanup 2005-04-06 21:14:06 +00:00
Igor Zlatkovic
f52de60f11 fixed mingw compilation 2005-04-06 20:42:35 +00:00
Igor Zlatkovic
53dbdd7774 *** empty log message *** 2005-04-06 20:06:50 +00:00
Igor Zlatkovic
c52020fc13 added Eclipse project files to ignore 2005-04-06 20:06:08 +00:00
Daniel Veillard
4ddaa56d7a fixed the bug in lang() as raised by Elliotte Rusty Harold added a
* xpath.c: fixed the bug in lang() as raised by Elliotte Rusty Harold
* result/XPath/tests/langsimple test/XPath/tests/langsimple
  test/XPath/docs/lang: added a regression test
Daniel
2005-04-06 14:09:08 +00:00
Daniel Veillard
6056ae93d3 applied fix from Rob Richards to compile on Windows. Daniel
* nanoftp.c: applied fix from Rob Richards to compile on Windows.
Daniel
2005-04-05 21:48:57 +00:00
Kasimier T. Buchcik
5e371a048c Added "Type Derivation OK (Complex)" constraints and anchored them in the
* xmlschemas.c: Added "Type Derivation OK (Complex)" constraints
  and anchored them in the "Element Locally Valid (Element)"
  constraints. This restricts the type substitution via "xsi:type".
2005-04-05 15:08:05 +00:00
Daniel Veillard
f35984584e patch from Matthew Burgess to improve some schemas facets validation
* xmlschemas.c: patch from Matthew Burgess to improve some schemas
  facets validation messages.
Daniel
2005-04-05 11:10:45 +00:00
Daniel Veillard
0dcc50ae48 Fixed Kasimier name, daniel 2005-04-04 09:34:15 +00:00
Daniel Veillard
771971f2e5 preparing release 2.6.19, updated docs and rebuilding. Daniel
* doc/* configure.in NEWS: preparing release 2.6.19, updated docs and
  rebuilding.
Daniel
2005-04-02 10:49:51 +00:00
Daniel Veillard
cdc1a59a63 integrated fixup-tests.py Daniel
* xstc/Makefile.am: integrated fixup-tests.py
Daniel
2005-04-02 10:28:13 +00:00
Daniel Veillard
bda5957667 fixed a lack of comment and missing test for a pointer in the API. Daniel
* xmlschemastypes.c: fixed a lack of comment and missing test for
  a pointer in the API.
Daniel
2005-04-01 17:15:17 +00:00
Kasimier T. Buchcik
755307a9e2 A tiny script to fixup some of the schema files used for the tests.
* xstc/fixup-tests.py: A tiny script to fixup some of the schema
  files used for the tests.
2005-04-01 15:55:45 +00:00
Kasimier T. Buchcik
256401b2bd Committing again, since the CVS server aborted.
* xmlschemas.c include/libxml/schemasInternals.h
  result/schemas/src-element2-*.err result/schemas/element-*.err:
  Committing again, since the CVS server aborted.
2005-04-01 15:36:42 +00:00
Kasimier T. Buchcik
aba15f7670 Corrected 'length' facet validation for QNames and notations. Corrected
* xmlschemastypes.c: Corrected 'length' facet validation for
  QNames and notations. Corrected xmlSchemaGetCanonValue: some
  data types did not return a value if already in normalized
  form.
* xmlschemas.c include/libxml/schemasInternals.h:
  Eliminated creation of structs for <restriction>, <extension>,
  <simpleContent>, <complexContent>, <list> and <union>: the
  information is now set directly on the corresponding simple/
  complex type. Added some more complex type constraints.
  Added facet derivation constraints. Introduced "particle"
  components, which seem to be really needed if applying
  constraints. Corrected/change some of the parsing functions.
  This is all a bit scary, since a significant change to the code.
* result/schemas/src-element2-*.err result/schemas/element-*.err:
  Adapted regression test results.
2005-04-01 15:17:27 +00:00
Daniel Veillard
5d4644ef6e 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
2005-04-01 13:11:58 +00:00
Daniel Veillard
64354ea7d6 fixed bug reported by Petr Pajas, in the absence of encoding UTF-8 should
* xmlsave.c: fixed bug reported by Petr Pajas, in the absence of
  encoding UTF-8 should really be assumed. This may break if
  the HTTP headers indicates for example ISO-8859-1 since this
  then becomes a well formedness error.
Daniel
2005-03-31 15:22:56 +00:00
Daniel Veillard
7331e5cab8 fixed #172260 redundant assignment. fixed xmlSAXParseDoc() and
* SAX.c: fixed #172260 redundant assignment.
* parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and
  xmlParseDoc() signatures #172257.
Daniel
2005-03-31 14:59:00 +00:00
Daniel Veillard
32acf0c3b4 fix potential crash if ctxt->sax->ignorableWhitespace is NULL as reported
* parser.c: fix potential crash if ctxt->sax->ignorableWhitespace
  is NULL as reported by bug #172255
Daniel
2005-03-31 14:12:37 +00:00
Daniel Veillard
63d68a37be fixed a problem in Relax-NG validation #159968 added the test to the
* relaxng.c: fixed a problem in Relax-NG validation #159968
* test/relaxng/list.* result/relaxng/list_*: added the test
  to the regression suite
Daniel
2005-03-31 13:50:00 +00:00
Daniel Veillard
f2531afe41 fixed bug #168504 Daniel
* python/libxml.c: fixed bug #168504
Daniel
2005-03-31 11:06:29 +00:00
Daniel Veillard
c284c64ff9 use XML_SOCKLEN_T instead of SOCKLEN_T since apparently IBM can't avoid
* config.h.in configure.in nanoftp.c nanohttp.c xmllint.c
  macos/src/config-mac.h: use XML_SOCKLEN_T instead of SOCKLEN_T
  since apparently IBM can't avoid breaking common defines #166922
Daniel
2005-03-31 10:24:24 +00:00
Daniel Veillard
394902e0d2 fix unitinialized variable in not frequently used code bug #172182 Daniel
* encoding.c: fix unitinialized variable in not frequently used
  code bug #172182
Daniel
2005-03-31 08:43:44 +00:00
Daniel Veillard
0e460da346 another patch from Brent Hendricks to add new handlers with the various
* python/generator.py python/libxml.py: another patch from Brent
  Hendricks to add new handlers with the various validity contexts
* python/tests/Makefile.am python/tests/validDTD.py
  python/tests/validRNG.py python/tests/validSchemas.py: also
  added the regression tests he provided
Daniel
2005-03-30 22:47:10 +00:00
Daniel Veillard
bb8502c0ef applied patch from Brent Hendricks to avoid leak in python bindings when
* python/generator.py python/libxml.c: applied patch from Brent
  Hendricks to avoid leak in python bindings when using schemas
  error handlers.
Daniel
2005-03-30 07:40:35 +00:00
Daniel Veillard
aa9a983dbd fixing bug 168196, <a name=""> must be URI escaped too Daniel
* HTMLtree.c: fixing bug 168196, <a name=""> must be URI escaped too
Daniel
2005-03-29 20:30:17 +00:00
Daniel Veillard
5cd3e8c494 cleanup of the Prop related functions and xmlNewNodeEatName by Rob
* tree.c: cleanup of the Prop related functions and xmlNewNodeEatName
  by Rob Richards
Daniel
2005-03-27 11:25:28 +00:00
William M. Brack
ba1d317aa8 fixed problem with 'minimal library' compilation (LIBXML_PATTERN_ENABLED
* gentest.py, testapi.c: fixed problem with 'minimal library'
  compilation (LIBXML_PATTERN_ENABLED not properly checked) reported
  by Greg Morgan
2005-03-25 03:05:46 +00:00
Kasimier T. Buchcik
53b5e0526f Fixed call to a facet error report: the type of the error was wrong,
* xmlschemas.c: Fixed call to a facet error report: the type of
  the error was wrong, resulting in a segfault (bug #171220, reported
  by GUY Fabrice).
2005-03-24 11:05:13 +00:00
Kasimier T. Buchcik
a62f75f115 Removed a stupid bug in xmlSchemaValidateAttributes, failing to build a
* xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes,
  failing to build a linked list correctly (bug #169898, reported
  by bing song, hmm...).
2005-03-21 22:01:47 +00:00
Kasimier T. Buchcik
b34ad1b676 Fixed a segfault, which occured during bubbling of IDC nodes (bug #170779
* xmlschemas.c: Fixed a segfault, which occured during bubbling
  of IDC nodes (bug #170779 and #170778, reported by GUY Fabrice):
  a variable was missed to be reset in a loop. Deactivated bubbling,
  if not referenced by a keyref.
2005-03-21 20:10:31 +00:00
Aleksey Sanin
9e75e9fe95 special case "DAV:" namespace in c14n relative namespaces check and add
* c14n.c include/libxml/xmlerror.h: special case "DAV:" namespace
in c14n relative namespaces check and add structured error messages
to c14n code
2005-03-20 19:16:47 +00:00
Kasimier T. Buchcik
289dbb45d9 Removed inheritance of "mixed" content type for short-hand restrictions of
* xmlschemas.c: Removed inheritance of "mixed" content type for
  short-hand restrictions of "anyType" (reported by Guy Fabrice
  to the mailing list). Added the namespace conversion (chameleon
  includes) for the base type reference of <restriction> and
  <extension>.
* test/schemas/bug152470_1.xsd: Adapted due to the above change
  of "mixed" inheritance.
2005-03-17 12:39:31 +00:00
Daniel Veillard
bc69d4f942 fixed a = -> == error pointed by GUY Fabrice Daniel
* xmlschemas.c: fixed a = -> == error pointed by GUY Fabrice
Daniel
2005-03-17 10:04:46 +00:00
Daniel Veillard
cc5e2330ef more debug messages from Matthew Burgess xmlSchemaValidateLengthFacet API
* xmlschemas.c: more debug messages from Matthew Burgess
* xmlschemastypes.c: xmlSchemaValidateLengthFacet API missing check.
Daniel
2005-03-16 21:55:35 +00:00