|
070d635e
|
2020-06-21T16:26:38
|
|
Fix integer overflow when parsing {min,max}Occurs
Clamp value to INT_MAX.
Found with libFuzzer and UBSan.
|
|
4f2aee18
|
2020-05-04T14:03:52
|
|
Make schema validation fail with multiple top-level elements
Closes #126.
|
|
20c60886
|
2020-03-08T17:19:42
|
|
Fix typos
Resolves #133.
|
|
7ffcd44d
|
2019-08-20T16:33:06
|
|
Fix memory leak in xmlSchemaValidateStream
When ctxt->schema is NULL, xmlSchemaSAXPlug->xmlSchemaPreRun
alloc a new schema for ctxt->schema and set vctxt->xsiAssemble
to 1. Then xmlSchemaVStart->xmlSchemaPreRun initialize
vctxt->xsiAssemble to 0 again which cause the alloced schema
can not be freed anymore.
Found with libFuzzer.
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
|
|
9bd7abfb
|
2020-01-02T14:14:48
|
|
Remove useless comparisons
Found by lgtm.com
|
|
2a350ee9
|
2019-09-30T17:04:54
|
|
Large batch of typo fixes
Closes #109.
|
|
4e326a3a
|
2019-09-02T14:16:12
|
|
Fix potential null deref in xmlSchemaIDCFillNodeTables
Merge request !45
|
|
01d8cf07
|
2019-08-15T15:15:42
|
|
Misleading error message with xs:{min|max}Inclusive
Closes #53.
|
|
b697d7bb
|
2018-09-04T16:48:15
|
|
Fix xmlSchemaValidCtxtPtr reuse memory leak
When reusing an xmlSchemaValidCtxtPtr to validate multiple xml documents
against the same schema, there is a memory leak in xmlschemas.c in
xmlSchemaClearValidCtxt(). The vctxt->idcKeys and associated counters
are not cleaned up in xmlSchemaClearValidCtxt() as they are in
xmlSchemaFreeValidCtxt(). As a result, vctxt->idcKeys grows with each
xmlValidateDoc() call that uses the same context and that memory is
never freed. Similarly, vctxt->nbIdcKeys and vctxt->sizeIdcKeys
increment and are never reset.
Closes: #23
|
|
359e7504
|
2017-11-13T21:13:46
|
|
Fix -Wmisleading-indentation warnings
|
|
e5f33e56
|
2017-11-09T17:29:22
|
|
Fix misc callback signatures
Fix parameter and return types for xmlC14NIsVisibleCallback and
xmlRegExecCallbacks.
|
|
e03f0a19
|
2017-11-09T16:42:47
|
|
Fix hash callback signatures
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.
|
|
d2c329a9
|
2017-10-21T13:49:31
|
|
Fix -Wimplicit-fallthrough warnings
Add "falls through" comments to quench implicit-fallthrough warnings
which are enabled by -Wextra under GCC 7.
|
|
454e397e
|
2017-08-28T14:30:43
|
|
Porting libxml2 on zOS encoding of code
First set of patches for zOS
- entities.c parser.c tree.c xmlschemas.c xmlschemastypes.c xpath.c xpointer.c:
ask conversion of code to ISO Latin 1 to avoid having the compiler assume
EBCDIC codepoint for characters.
- xmlmodule.c: make sure we have support for modules
- xmlIO.c: zOS path names are special avoid dsome of the expectstions from
Unix/Windows
|
|
27f310d4
|
2017-07-27T14:06:44
|
|
Fix signature of xmlSchemaAugmentImportedIDC
this is used in a callback which will pass a name, the name is ignored
but it's best to have the signature of the function match, pointed out
by Claude Petit
* xmlschemas.c: fix xmlSchemaAugmentImportedIDC() signature no functional
change
|
|
8bbe4508
|
2017-06-17T16:15:09
|
|
Spelling and grammar fixes
Fixes bug 743172, bug 743489, bug 769632, bug 782400 and a few other
misspellings.
|
|
1a595cd1
|
2017-06-17T14:13:51
|
|
Fix cast-align warnings
- Suppress warnings in xmlmemory.c by casting to 'void *'.
- Remove unneeded cast in xmlschemas.c that caused a macro precedence
error.
- Add dummy fields to short structs in xmlschemas.c. This increases the
size of the structs, but I can't see a better solution without using
C11's _Alignof operator.
There are still a couple of cast-align warnings in encoding.c. These
are legitimate portability issues that can't be fixed without reworking
the conversion functions.
|
|
31696020
|
2016-05-26T17:38:35
|
|
Fix attribute decoding during XML schema validation
For https://bugzilla.gnome.org/show_bug.cgi?id=766834
vctxt->parserCtxt is always NULL in xmlSchemaSAXHandleStartElementNs,
so this function can't call xmlStringLenDecodeEntities to decode the
entities.
|
|
d77e5fc4
|
2016-05-31T21:04:50
|
|
relaxng.c, xmlschemas.c: Fix build on pre-C99 compilers
Make sure that the variables are declared at the top of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=767063
|
|
502f6a6d
|
2016-05-23T14:58:41
|
|
More format string warnings with possible format string vulnerability
For https://bugzilla.gnome.org/show_bug.cgi?id=761029
adds a new xmlEscapeFormatString() function to escape composed format
strings
|
|
4472c3a5
|
2016-05-13T15: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.
|
|
f6599c51
|
2016-05-02T22:29:59
|
|
Fix XSD validation of URIs with ampersands
For https://bugzilla.gnome.org/show_bug.cgi?id=709171
This makes xmlSchemaSAXHandleStartElementNs pass attributes through
xmlStringDecodeEntities, similar to how xmlSchemaVDocWalk passes them
through xmlNodeListGetString.
|
|
bb654feb
|
2016-04-13T16:56:07
|
|
Fix typos: dictio{ nn -> n }ar{y,ies}
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
73c50805
|
2015-10-26T18:33:14
|
|
Correct spelling of "calling"
|
|
58b84e1f
|
2015-06-30T10:47:16
|
|
Fix a self assignment issue raised by clang
For https://bugzilla.gnome.org/show_bug.cgi?id=751679
Also added a few newline cleanups
|
|
d201e71e
|
2014-08-07T11:42:07
|
|
no error column in structured error handler for xml schema validation errors
For https://bugzilla.gnome.org/show_bug.cgi?id=734363
When using xml schema validation, structured error callbacks do not get
passed a valid column number in xmlError field "int2".
$ ./xmlsaxparse colbug5.xml colbug5.xsd
colbug5.xml:3:0: Element '{urn:colbug5}bx': This element is not
expected.
Expected is ( {urn:colbug5}b ).
The schema error is reported for line 3, column 0 (= N/A).
I'd like to have the column number of the error passed in the xmlError
structure. With this test case: line 3, column 9.
|
|
761c9e99
|
2013-11-29T23:26:27
|
|
Get rid of 'REPLACEMENT CHARACTER' Unicode chars in xmlschemas.c
Middle dot pairs (as in [1]) turned to grave accents/backticks,
section signs to dollars (for compatibility with ASCII).
[1] http://www.w3.org/TR/xmlschema-1/
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
7a7cad6e
|
2013-11-29T23:26:26
|
|
Fix typos in xmlschemas{,types}.c
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
f3d79416
|
2013-11-28T22:53:54
|
|
Type mismatch in xmlschemas.c
For https://bugzilla.gnome.org/show_bug.cgi?id=715152
|
|
1f6c42cf
|
2013-03-18T15:30:00
|
|
Fix an old bug in xmlSchemaValidateOneElement
Recently I have run into the very same problem Tiberius Duluman did back in
Wed, 13 May 2009 15:56:55 +0300 ([xml] Bug in xmlSchemaValidateOneElement
function). Now I can proof now that his problem is a valid problem. I checked
the latest available version of xmlschemas.c (2.9.0.) and the problem is still
there!
I think I have found a solution to the problem which I'd like proof with you:
My quick solution to the problem is to replace line 27849 in
xmlschemas.c
(v2.9.0.) in function xmlSchemaVDocWalk
valRoot = xmlDocGetRootElement(vctxt->doc);
with this one:
valRoot = vctxt->validationRoot ? vctxt->validationRoot : xmlDocGetRootElement(vctxt->doc);
Currently I'm using version 2.7.8. in Windows and this change seems to solve
the problem.
|
|
c100e69c
|
2013-02-28T19:02:32
|
|
fix schema validation in combination with xsi:nil
Based on Thomas Gamper <icicle@cg.tuwien.ac.at> findings and
initial patch
There is no point doing a regexp validation of further
content if there actually is no further content because the
element is nilled.
|
|
f8e3db04
|
2012-09-11T13:26:36
|
|
Big space and tab cleanup
Remove all space before tabs and space and tabs at end of lines.
|
|
c70d185a
|
2012-08-23T23:28:04
|
|
Fix an XSD error when generating internal automata
When generating a sequence add an extra epsilon transition
to avoid further constructs from entering via the last state
Bug reported by Johan Corveleyn <jcorvel@gmail.com>
|
|
ef4526ad
|
2012-08-15T09:14:31
|
|
Fix a variable name in comment
|
|
97fa5b3c
|
2012-08-14T11:01:07
|
|
Fix file and line report for XSD SAX and reader streaming validation
Things now work correctly at the xmllint level:
thinkpad:~/XML -> xmllint --sax --noout --schema test_schema.xsd
test_xml.xml
test_xml.xml:72721: Schemas validity error : Element 'level1': Missing
child element(s). Expected is ( level2 ).
test_xml.xml fails to validate
thinkpad:~/XML -> xmllint --stream --schema test_schema.xsd test_xml.xml
test_xml.xml:72721: Schemas validity error : Element 'level1': Missing
child element(s). Expected is ( level2 ).
test_xml.xml fails to validate
thinkpad:~/XML ->
* error.c: fix a corner case of not reporting lines when we should
* include/libxml/xmlschemas.h doc/symbols.xml: had to add new entry
points to set the filename on a validation context and a locator
callback used to fetch the line and file from the context
* xmlschemas.c: add the new entry points xmlSchemaValidateSetFilename()
and xmlSchemaValidateSetLocator(), plus make sure the error reporting
routine gets the information if available. Add a locator for SAX.
* xmlreader.c: add and plug a locator for readers.
|
|
4609e6c9
|
2012-05-11T15:31:05
|
|
XSD: optional element in complex type extension
For https://bugzilla.gnome.org/show_bug.cgi?id=609796
Libxml2 fails to validate an instance document against a schema if an element
whose type is a complex extension of some base type with an optional child
element and that child element is not specified in the instance document. For
example, suppose I have some complex type BaseType that is defined to have one
child element in a sequence group that has minOccurs set to 0
|
|
5cf1deb0
|
2012-02-29T10:56:32
|
|
Fix a logic error in Schemas Component Constraints
|
|
8bb12988
|
2011-08-04T16:40:48
|
|
Fix XSD validation bug #630130
This bug in xmlschemas made validation with the GML Schemas fail
Test cases to be commited separately
|
|
c84e863c
|
2010-11-03T21:05:18
|
|
627987 Fix XSD IDC errors in imported schemas
Fix XSD IDC references when xsi:schemalocation is used for
referencing the validation schemas
|
|
410d2c4e
|
2009-09-24T11:00:16
|
|
Fix memory leak when doc is NULL
* xmlschemas.c: fix memory leak when doc is NULL
|
|
594e5dfb
|
2009-09-07T14:58:47
|
|
Chasing dead assignments reported by clang-scan
* 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)
|
|
d44b9364
|
2009-09-07T12:15:08
|
|
A few more safety cleanup raised by scan
* SAX2.c encoding.c parser.c xmlschemas.c: a few more safety checks
* relaxng.c: remove an unused intitialization
|
|
76d36458
|
2009-09-07T11:19:33
|
|
Fixing assorted potential problems raised by scan
* encoding.c parser.c relaxng.c runsuite.c tree.c xmlreader.c
xmlschemas.c: nothing really serious but better safe than sorry
|
|
4013e83e
|
2009-08-26T17:24:31
|
|
579746 XSD validation not correct / nilable groups
* xmlschemas.c: when a particle need to be processed via counted
transition, if the group is nillable, the counting won't work, so
keep track of nillable subset as they are built and generate the
appropriate epsilon transitions as needed
* test/schemas/579746* result/schemas/579746*: add related test cases
based on the bug report
|
|
bd56c443
|
2009-08-12T15:39:23
|
|
571271 fix semantic of xsd:all with minOccurs=0
* xmlschemas.c: apparently we though it allowed any of the sub elements
to be missing, and probably not what's expected from the spec, though
it used to forbid it c.f.:
http://lists.xml.org/archives/xml-dev/200109/msg00512.html
asking HT for confirmation but it's likely that we were wrong on the
semantic
* result/schemas/all_1_[367]*: this changes the output of soem of our
internal regression tests
|
|
99f7ac7f
|
2009-08-07T21:27:44
|
|
585505 – Document ids and refs populated by XSD
* xmlschemas.c: simple patch allowing document ids and refs to be
asserted when XSD validation is done.
|
|
edc68aad
|
2009-08-07T20:29:33
|
|
582906 XSD validating multiple imports of the same schema
* xmlschemas.c: When validating a schema that includes the same file
that has no targetNamespace defined an internal erro was thrown,
depending on the orig namespace that should be allowed though
* test/schemas/582906-* result/schemas/582906-*: 2 tests case, one
where this is allowed, and one where this is forbidden
|
|
d9960720
|
2009-08-07T19:01:32
|
|
Bug 582887 – problems validating complex schemas
* xmlschemas.c: fixes the problem faced when importing the same schemas
multiple times but from different places which is allowed
* test/schemas/582887* result/schemas/582887*: adding the specific test
to the regressions
|
|
8f58f89d
|
2009-08-07T17:22:12
|
|
Bug 579729 – fix XSD schemas parsing crash
* xmlschemas.c: a typo in XSD schema validation, where inherited
bfminlen rewrote blength and caused SIGSEGV
|
|
2cdd17e2
|
2009-07-27T21:16:13
|
|
Fix an XSD validation crash
* xmlschemas.c: fix a crash reported by Daniel Albeseder #589895
|
|
bccae2d2
|
2009-06-04T11: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
|
|
1572425c
|
2008-08-30T15:01:04
|
|
preparing 2.7.0 release remove some testing traces remove some warnings
* configure.in, doc/*: preparing 2.7.0 release
* tree.c: remove some testing traces
* parser.c xmlIO.c xmlschemas.c: remove some warnings
Daniel
svn path=/trunk/; revision=3788
|
|
bf9c1dad
|
2008-08-26T07:46:42
|
|
add the testchar to 'make check' Volker Grabsch pointed out a typo
* Makefile.am: add the testchar to 'make check'
* xmlschemas.c: Volker Grabsch pointed out a typo
* xmlregexp.c: production [19] from XML Schemas regexps were a
mistake removed in version REC-xmlschema-2-20041028, Volker Grabsch
provided a patch to remove it
* test/schemas/regexp-char-ref_0.xml test/schemas/regexp-char-ref_0.xsd
test/schemas/regexp-char-ref_1.xsd result/schemas/regexp-char-ref_0_0
result/schemas/regexp-char-ref_1_0: Volker Grabsch also provided
regession tests for this
Daniel
svn path=/trunk/; revision=3776
|
|
c6947bb7
|
2008-06-29T15:04:41
|
|
fix crash with invalid whitespace facet
* xmlschemas.c: fix crash with invalid whitespace facet
svn path=/trunk/; revision=3750
|
|
438ebbd5
|
2008-05-12T12:58:46
|
|
fx compilation when configured without the reader should fix #513110
* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h
python/types.c python/libxml_wrap.h python/libxml.c: fx compilation
when configured without the reader should fix #513110
* doc/*: regenerated
Daniel
svn path=/trunk/; revision=3743
|
|
dee23485
|
2008-04-11T12:58:43
|
|
added new function xmlSchemaValidCtxtGetParserCtxt based on Holger
* include/libxml/xmlschemas.h xmlschemas.c: added new function
xmlSchemaValidCtxtGetParserCtxt based on Holger Kaelberer patch
* doc/apibuild.py doc/*: regenerated the doc, chased why the new
function didn't got any documentation, added more checking in the
generator
* include/libxml/relaxng.h include/libxml/schematron.h
include/libxml/xmlschemas.h include/libxml/c14n.h
include/libxml/xmlregexp.h include/libxml/globals.h
include/libxml/xmlreader.h threads.c xmlschemas.c: various changes
and cleanups following the new reports
Daniel
svn path=/trunk/; revision=3738
|
|
33fe2888
|
2008-04-10T08:09:25
|
|
extend the cleanup rule space cleanup Daniel
* Makefile.am: extend the cleanup rule
* xmlschemas.c: space cleanup
Daniel
svn path=/trunk/; revision=3737
|
|
b3e45367
|
2008-03-26T13:39:31
|
|
fix a problem in externalSubsetSplit with a patch from Ashwin Daniel
* xmlschemas.c: fix a problem in externalSubsetSplit with a patch
from Ashwin
Daniel
svn path=/trunk/; revision=3716
|
|
77fbc3ea
|
2008-03-24T14:06:19
|
|
fix an XML Schemas crash raised by Stefan Behnel when testing with W3C
* xmlschemas.c: fix an XML Schemas crash raised by Stefan Behnel
when testing with W3C test suite
Daniel
svn path=/trunk/; revision=3712
|
|
7d0ca5e8
|
2008-02-05T08:43:52
|
|
apply fix suggested by Ashwin correcting a cut-n-paste error about the SAX
* schemas.c: apply fix suggested by Ashwin correcting a cut-n-paste
error about the SAX callback in cdataBlockSplit when streaming
XSD validation
Daniel
svn path=/trunk/; revision=3684
|
|
3888f472
|
2007-08-23T09:29:03
|
|
applied patch from Frank Gross fixing Schemas IDC import bug #455953 and
* xmlschemas.c test/schemas/*455953* result/schemas/bug455953*:
applied patch from Frank Gross fixing Schemas IDC import bug
#455953 and also add the test to the regression suite
Daniel
svn path=/trunk/; revision=3652
|
|
65fcf27a
|
2007-07-11T17:55:30
|
|
applied patch for xsi:nil from Frank Gross, this should fix bug #358125
* xmlschemas.c: applied patch for xsi:nil from Frank Gross, this
should fix bug #358125
Daniel
svn path=/trunk/; revision=3643
|
|
734e7667
|
2007-06-26T11:30:31
|
|
fix a crash on solaris when a printf %s with a NULL argument occurs,
* xmlschemas.c: fix a crash on solaris when a printf %s with a NULL
argument occurs, should fix #450936
Daniel
svn path=/trunk/; revision=3641
|
|
06559b3a
|
2007-03-14T09:34:15
|
|
fixed problem with referenced attribute groups (bug #417621) re-ordered
* xmlschemas.c: fixed problem with referenced attribute groups
(bug #417621)
* configure.in: re-ordered some includes for types.h / socket.h
(bug 416001)
svn path=/trunk/; revision=3590
|
|
deb58713
|
2006-08-15T12:52:30
|
|
While investigating bug #350247, I noticed that xmlSchemaIDCMatcher
* xmlschemas.c: While investigating bug #350247, I noticed
that xmlSchemaIDCMatcher structs are massively recreated
although only a maximum of 3 structs is used at the same
time; added a cache for those structures to the
validation context.
|
|
6f9b0878
|
2006-08-12T14:09:01
|
|
applied patch from Marton Illes to fix an allocation bug in
* xmlschemas.c: applied patch from Marton Illes to fix an allocation
bug in xmlSchemaXPathEvaluate should close #351032
Daniel
|
|
1131e116
|
2006-08-07T11:02:54
|
|
applied patch from Bertrand Fritsch to fix a bug in
* xmlschemas.c: applied patch from Bertrand Fritsch to fix a bug in
xmlSchemaClearValidCtxt
Daniel
|
|
f896d44a
|
2006-07-12T15:18:08
|
|
Fixed bug #347316, reported by David Belius: The simple type, which was
* xmlschemas.c: Fixed bug #347316, reported by David Belius:
The simple type, which was the content type definition
of a complex type, which in turn was the base type of a
extending complex type, was missed to be set on this
extending complex type in the derivation machinery.
|
|
e5f810f6
|
2006-05-30T09:41:25
|
|
A warning will now be reported in the value of the XSD attribute
* xmlschemas.c: A warning will now be reported in the value of
the XSD attribute 'schemaLocation' does not consist of tuples
(namespace-name, document-URI). A warning will be reported
if a schema document could not be found at the specified
location (via 'schemaLocation' or
'noNamespaceSchemaLocation').
* include/libxml/xmlerror.h: Added XML_SCHEMAV_MISC to
xmlParserErrors.
|
|
9b02e295
|
2006-05-11T16:25:44
|
|
Fixed bug #341337, reported by David Grohmann. The code expected a node
* xmlschemas.c: Fixed bug #341337, reported by David Grohmann.
The code expected a node (xmlNodePtr) on the info for a
non-existent default attribute, which clearly cannot be
expected, since the attribute does not exist. I can only
guess that this sneaked trying to eliminate the query
for the owner-element, which is unavoidable actually.
Note that creation of default attributes won't have an
effect if validating via SAX/XMLReader; i.e., the processor
won't fire additional start-attribute events (I'm not even
sure if Libxml2 has such a SAX-event; I think it hands them
all over in the start-element event).
|
|
92b394fc
|
2006-05-09T19:59:54
|
|
Fixed bug #341150, reported by Michael Romer. In
* xmlschemas.c: Fixed bug #341150, reported by Michael Romer.
In xmlSchemaBuildContentModelForSubstGroup(),
xmlAutomataNewOnceTrans2() was incorrectly used instead of
xmlAutomataNewTransition2() to mimic a xs:choice for
substitution-groups.
* test/schemas/subst-group-1_1.xsd
test/schemas/subst-group-1_0.xml
result/schemas/subst-group-1_0_1
result/schemas/subst-group-1_0_1.err: Added regression test
supplied by Michael Romer for bug #341150.
|
|
146a982e
|
2006-05-04T17:19:07
|
|
We'll raise an internal error and stop validation now when an entity is
* xmlschemas.c: We'll raise an internal error and stop
validation now when an entity is found in the instance
document, since we don't support automatic entity
substitution by the schema processor (yet?) -
see bug #340316, reported by Nick Wellnhofer.
|
|
b63d2fab
|
2006-04-19T11:20:49
|
|
Fixed incorrect validation of restricted enumerations. Added related
* xmlschemas.c test/schemas/restriction-enum-1*
result/schemas/restriction-enum-1*: Fixed incorrect
validation of restricted enumerations. Added related
regression tests.
|
|
cdf59aa5
|
2006-04-13T07:50:11
|
|
fixing a deallocation problem in xmlSchemaAddSchemaDoc() in case of
* xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc()
in case of errors, should fix bug #338303
Daniel
|
|
b294717b
|
2006-03-27T09:45:01
|
|
removed unused code or variables, from Stefan Kost fixing #336163 and
* xmlschemas.c: removed unused code or variables, from Stefan Kost
fixing #336163 and #336164
Daniel
|
|
fef73a55
|
2006-03-27T09:38:57
|
|
applied patch from Stefan Kost fixing #336160 Daniel
* xmlschemas.c: applied patch from Stefan Kost fixing #336160
Daniel
|
|
aac7c68e
|
2006-03-10T13:40:16
|
|
fix a few warning raised by gcc-4.1 and latests changes Daniel
* c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few
warning raised by gcc-4.1 and latests changes
Daniel
|
|
14b56439
|
2006-03-09T18:41:40
|
|
more cleanups based on coverity reports. Daniel
* relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based
on coverity reports.
Daniel
|
|
4c0aa16e
|
2006-02-20T14:47:08
|
|
Fixed a side-effect of the previous XSI bugfix: The constructor needs a
* xmlschemas.c: Fixed a side-effect of the previous XSI bugfix:
The constructor needs a bucket to be assigned during component
fixup.
|
|
1869be56
|
2006-02-20T13:37:55
|
|
Fixed xs:boolean to reject the empty string (reported by Bas Driessen on
* xmlschemas.c xmlschemastypes.c: Fixed xs:boolean to reject
the empty string (reported by Bas Driessen on the mailing-list).
Fixed schema XSI-acquisition and construction: the schemata
(xmlSchema) didn't get the targetNamespace in some cases, thus
the component resolution mechanism failed to work. The XSI
stuff needs to be tested more intensively; think about how
to test this for regression.
|
|
67952601
|
2006-01-05T15:29:44
|
|
upated the news regenerated the docs, preparing for release of 2.6.23
* NEWS configure.in libxml.spec.in testapi.c doc/*: upated the news
regenerated the docs, preparing for release of 2.6.23
* pattern.c xmlschemas.c: fixed some comments
Daniel
|
|
dfbc33a1
|
2006-01-03T10:51:59
|
|
Removed last dependency on the obsolete enum xmlSchemaValidError.
* xmlschemas.c: Removed last dependency on the obsolete enum
xmlSchemaValidError.
|
|
d0271473
|
2006-01-02T10:22:02
|
|
compilation and doc build fixes from Michael Day Daniel
* xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation
and doc build fixes from Michael Day
Daniel
|
|
5bb0c08d
|
2005-12-20T10:48:33
|
|
Fixed a segfault during text concatenation when validating a node tree:
* xmlschemas.c xmlstring.c: Fixed a segfault during
text concatenation when validating a node tree:
xmlStrncat was called with a @len of -1; but unlike
xmlStrncatNew, it does not calculate the length
automatically in such a case (reported by Judy Hay
on the mailing list).
Updated the descriptions of the involved string
functions to note this.
|
|
7ca5aedf
|
2005-12-12T15:13:40
|
|
Workaround for bug #323510: substituted the epsilon transition for a
* xmlschemas.c: Workaround for bug #323510: substituted the
epsilon transition for a labelled transition, in order to
avoid a bug in xmlregexp.c which eliminated the epsilon
transition and marked the initial state as final.
|
|
6a0baa0c
|
2005-12-10T11:11:12
|
|
fixed a number of warnings shown by HP-UX compiler and reported by Rick
* HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c
testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number
of warnings shown by HP-UX compiler and reported by Rick Jones
Daniel
|
|
215406f0
|
2005-12-07T12:14:09
|
|
Fixed a segfault: the instance document was still tried to be validated,
* xmlschemas.c: Fixed a segfault: the instance document was
still tried to be validated, if the schema, dynamically
acquired using XSI was invalid, thus mangled. The
validation will stop (or rather won't validate) now in
such a case. The schema parser error code will be set
on the validion context now; this is somehow not nice,
but it assures that the validation context indicates an
error in there was a parser error.
|
|
f39e8d1f
|
2005-11-30T11:03:24
|
|
Fixed bubbling of duplicate IDC nodes: the parent's list of duplicates was
* xmlschemas.c: Fixed bubbling of duplicate IDC nodes: the
parent's list of duplicates was filled with NULLs instead
of the nodes under certain conditions. This lead to a
segfault when the list's entries were accessed.
|
|
132ba5f5
|
2005-11-28T12:32:24
|
|
An assignment to a local variable, which was used to access the IDC node
* xmlschemas.c: An assignment to a local variable, which was
used to access the IDC node list, was missing after the
reallocation of the list (reported by Fabrice GUY
bug #322411). Renamed the define ENABLE_IDC_NODE_TABLES
to ENABLE_IDC_NODE_TABLES_TEST and *disabled* it, since
it is used to force bubbling of IDC node tables even
if not necessary; this was intended to be used for test
purposes, but I obviously missed to disable it (although
it apparently helped finding the bug).
|
|
81755ea6
|
2005-11-23T16:39:27
|
|
In xmlSchemaAssembleByXSI() the return value of xmlSchemaGetMetaAttrInfo()
* xmlschemas.c: In xmlSchemaAssembleByXSI() the return value
of xmlSchemaGetMetaAttrInfo() was not assigned to anything;
this caused XSI-driven-dynamic schema acquisition to fail
with @noNamespaceSchemaLocation (reported by Julien Lamy
on the mailing list).
|
|
5d2998be
|
2005-11-22T17:36:01
|
|
Fixed a bug in xmlSchemaFindRedefCompInGraph() which caused the search for
* xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph()
which caused the search for components to stop at the
first encountered attribute group component.
Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the
designation of a not-found component was not reported.
|
|
90b5ebc0
|
2005-11-18T17:18:27
|
|
Added xmlSchemaSetParserStructuredErrors() to the API. Fixed channeling of
* xmlschemas.c include/libxml/xmlschemas.h:
Added xmlSchemaSetParserStructuredErrors() to the API.
Fixed channeling of error relevant information to
subsequent parser/validation contexts.
|
|
77e76829
|
2005-11-11T12:52:32
|
|
Changed xmlSchemaFormatIDCKeySequence() to use
* xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence()
to use xmlSchemaGetCanonValueWhtspExt() in order to
correctly report values for xs:anySimpleType.
* test/schemas/idc-keyref-err1*
result/schemas/idc-keyref-err1*: Added a test for this change.
|
|
69dea3a0
|
2005-11-07T14:02:44
|
|
Fixed the type of the totalDigits value to be positiveInteger. Fixed crash
* xmlschemas.c xmlschemastypes.c: Fixed the type of the
totalDigits value to be positiveInteger.
Fixed crash in an error report function when we gave it
the document node; only element and attribute nodes are
processed now (reported by Rob Richards).
|
|
f326e77c
|
2005-10-20T11:06:00
|
|
Removed creation of a temporary parser context during validation when
* xmlschemas.c: Removed creation of a temporary parser context
during validation when processing xsi:type; this previously
added a string to the dict of the schema - to assure thread
safety, we don't want to modify a given schema during
validation.
|
|
940ab0c6
|
2005-10-19T17:00:53
|
|
Fixed a potential memory leak in xmlSchemaCheckCSelectorXPath() when an
* xmlschemas.c: Fixed a potential memory leak in
xmlSchemaCheckCSelectorXPath() when an internal error occurs.
Fixed setting of ctxt->err to the given error code in
the parsing error functions.
* pattern.c: Added internal xmlCompileIDCXPathPath() as a
starting point for IDC XPath compilation; this and some other
tiny changes fixes issues regarding whitespace in the
expressions and IDC selector/field relevant restrictions of
the subset of XPath. Fixed a missing blocking of attributes
in xmlStreamPushInternal().
|
|
567a45b5
|
2005-10-18T19:11:55
|
|
removed the error message removed 2 instability warnings from function
* 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
|
|
ee8e8ae9
|
2005-10-17T14:15:37
|
|
Fixed a memory leak in xmlSchemaContentModelDump(). Added output of local
* xmlschemas.c: Fixed a memory leak in
xmlSchemaContentModelDump(). Added output of local types
in xmlSchemaElementDump(). Tiny cosmetical changes to the
dump output.
|
|
65c2f1d7
|
2005-10-17T12:39:58
|
|
Silenced intel compiler warnings (reported by Kjartan Maraas, bug
* tree.c pattern.c: Silenced intel compiler warnings (reported
by Kjartan Maraas, bug #318517).
* xmlschemas.c: The above changes in pattern.c revealed an
inconsistency wrt IDCs: we now _only_ pop XPath states, if
we really pushed them beforehand; this was previously not
checked for the case when we discover an element node to be
invalid wrt the content model.
Fixed segfault in xmlSchemaGetEffectiveValueConstraint().
|
|
27820270
|
2005-10-14T14:33:48
|
|
Fixed some identity-constraint issues: Restructured IDC node-tables
* xmlschemas.c: Fixed some identity-constraint issues:
Restructured IDC node-tables
Allowed IDCs to resolve also to nodes of complex type with
simple content.
Added check for keyrefs with references to keyrefs.
IDC target-nodes were interferring with IDC node-tables,
since they used one list of entries only. I separated this
one big list into 3 lists: 1 for IDC node-table entries,
1 for _duplicates_ of IDC node-table entries and 1 for
IDC target-nodes. More code, but cleaner and it works at last.
Keyrefs will fail to resolve to duplicate key/unique entries.
I thought this was already working this way, but it didn't.
The wording of the definition for [node table] in the spec
can lead to a scenario, where keyrefs resolve perfectly, even
if the relevant key-sequences of the referenced key/unique have
duplicates in the subtree. Currently only Saxon 8.5.1 is
dissallowing resolution to duplicate entries correctly - we
will follow Saxon here.
Removed some intel compiler warnings (reported by
Kjartan Maraas, bug #318517).
* pattern.c: Fixed an IDC-XPath problem when resolving to
attributes.
|