Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Side by Side Diff: third_party/libxml/src/xmlschemas.c

Issue 7071029: Fix libxml namespace wildcard comparison (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/libxml/patches/bug_651202 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * schemas.c : implementation of the XML Schema handling and 2 * schemas.c : implementation of the XML Schema handling and
3 * schema validity checking 3 * schema validity checking
4 * 4 *
5 * See Copyright for the status of this software. 5 * See Copyright for the status of this software.
6 * 6 *
7 * Daniel Veillard <veillard@redhat.com> 7 * Daniel Veillard <veillard@redhat.com>
8 */ 8 */
9 9
10 /* 10 /*
(...skipping 13928 matching lines...) Expand 10 before | Expand all | Expand 10 after
13939 * 1 super must be any. 13939 * 1 super must be any.
13940 */ 13940 */
13941 if (super->any) 13941 if (super->any)
13942 return (0); 13942 return (0);
13943 /* 13943 /*
13944 * 2.1 sub must be a pair of not and a namespace name or �absent�. 13944 * 2.1 sub must be a pair of not and a namespace name or �absent�.
13945 * 2.2 super must be a pair of not and the same value. 13945 * 2.2 super must be a pair of not and the same value.
13946 */ 13946 */
13947 if ((sub->negNsSet != NULL) && 13947 if ((sub->negNsSet != NULL) &&
13948 (super->negNsSet != NULL) && 13948 (super->negNsSet != NULL) &&
13949 » (sub->negNsSet->value == sub->negNsSet->value)) 13949 » (sub->negNsSet->value == super->negNsSet->value))
13950 return (0); 13950 return (0);
13951 /* 13951 /*
13952 * 3.1 sub must be a set whose members are either namespace names or �absent� . 13952 * 3.1 sub must be a set whose members are either namespace names or �absent� .
13953 */ 13953 */
13954 if (sub->nsSet != NULL) { 13954 if (sub->nsSet != NULL) {
13955 /* 13955 /*
13956 * 3.2.1 super must be the same set or a superset thereof. 13956 * 3.2.1 super must be the same set or a superset thereof.
13957 */ 13957 */
13958 if (super->nsSet != NULL) { 13958 if (super->nsSet != NULL) {
13959 xmlSchemaWildcardNsPtr cur, curB; 13959 xmlSchemaWildcardNsPtr cur, curB;
(...skipping 14797 matching lines...) Expand 10 before | Expand all | Expand 10 after
28757 xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxtPtr ctxt) 28757 xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxtPtr ctxt)
28758 { 28758 {
28759 if (ctxt == NULL) 28759 if (ctxt == NULL)
28760 return(NULL); 28760 return(NULL);
28761 return (ctxt->parserCtxt); 28761 return (ctxt->parserCtxt);
28762 } 28762 }
28763 28763
28764 #define bottom_xmlschemas 28764 #define bottom_xmlschemas
28765 #include "elfgcchack.h" 28765 #include "elfgcchack.h"
28766 #endif /* LIBXML_SCHEMAS_ENABLED */ 28766 #endif /* LIBXML_SCHEMAS_ENABLED */
OLDNEW
« no previous file with comments | « third_party/libxml/patches/bug_651202 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698