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

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

Issue 2815643005: Remove patch which has been rolled in from libxml2 upstream. (Closed)
Patch Set: Also decrease the fuzz factor. Created 3 years, 8 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
« no previous file with comments | « third_party/libxml/chromium/roll.py ('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 * parser.c : an XML 1.0 parser, namespaces and validity support are mostly 2 * parser.c : an XML 1.0 parser, namespaces and validity support are mostly
3 * implemented on top of the SAX interfaces 3 * implemented on top of the SAX interfaces
4 * 4 *
5 * References: 5 * References:
6 * The XML specification: 6 * The XML specification:
7 * http://www.w3.org/TR/REC-xml 7 * http://www.w3.org/TR/REC-xml
8 * Original 1.0 version: 8 * Original 1.0 version:
9 * http://www.w3.org/TR/1998/REC-xml-19980210 9 * http://www.w3.org/TR/1998/REC-xml-19980210
10 * XML second edition working draft 10 * XML second edition working draft
(...skipping 8102 matching lines...) Expand 10 before | Expand all | Expand 10 after
8113 * ... The declaration of a parameter entity must precede 8113 * ... The declaration of a parameter entity must precede
8114 * any reference to it... 8114 * any reference to it...
8115 */ 8115 */
8116 if ((ctxt->standalone == 1) || 8116 if ((ctxt->standalone == 1) ||
8117 ((ctxt->hasExternalSubset == 0) && 8117 ((ctxt->hasExternalSubset == 0) &&
8118 (ctxt->hasPErefs == 0))) { 8118 (ctxt->hasPErefs == 0))) {
8119 xmlFatalErrMsgStr(ctxt, XML_ERR_UNDECLARED_ENTITY, 8119 xmlFatalErrMsgStr(ctxt, XML_ERR_UNDECLARED_ENTITY,
8120 "PEReference: %%%s; not found\n", 8120 "PEReference: %%%s; not found\n",
8121 name); 8121 name);
8122 } else { 8122 } else {
8123 if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
8124 ((ctxt->options & XML_PARSE_NOENT) == 0) &&
8125 ((ctxt->options & XML_PARSE_DTDVALID) == 0) &&
8126 ((ctxt->options & XML_PARSE_DTDLOAD) == 0) &&
8127 ((ctxt->options & XML_PARSE_DTDATTR) == 0) &&
8128 (ctxt->replaceEntities == 0) &&
8129 (ctxt->validate == 0))
8130 return;
8131 /* 8123 /*
8132 * [ VC: Entity Declared ] 8124 * [ VC: Entity Declared ]
8133 * In a document with an external subset or external 8125 * In a document with an external subset or external
8134 * parameter entities with "standalone='no'", ... 8126 * parameter entities with "standalone='no'", ...
8135 * ... The declaration of a parameter entity must 8127 * ... The declaration of a parameter entity must
8136 * precede any reference to it... 8128 * precede any reference to it...
8137 */ 8129 */
8138 xmlWarningMsg(ctxt, XML_WAR_UNDECLARED_ENTITY, 8130 xmlWarningMsg(ctxt, XML_WAR_UNDECLARED_ENTITY,
8139 "PEReference: %%%s; not found\n", 8131 "PEReference: %%%s; not found\n",
8140 name, NULL); 8132 name, NULL);
(...skipping 7712 matching lines...) Expand 10 before | Expand all | Expand 10 after
15853 if (stream == NULL) { 15845 if (stream == NULL) {
15854 xmlFreeParserInputBuffer(input); 15846 xmlFreeParserInputBuffer(input);
15855 return (NULL); 15847 return (NULL);
15856 } 15848 }
15857 inputPush(ctxt, stream); 15849 inputPush(ctxt, stream);
15858 return (xmlDoRead(ctxt, URL, encoding, options, 1)); 15850 return (xmlDoRead(ctxt, URL, encoding, options, 1));
15859 } 15851 }
15860 15852
15861 #define bottom_parser 15853 #define bottom_parser
15862 #include "elfgcchack.h" 15854 #include "elfgcchack.h"
OLDNEW
« no previous file with comments | « third_party/libxml/chromium/roll.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698