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

Unified Diff: third_party/libxml/chromium/chromium-issue-620679.patch

Issue 2804483002: Check in the libxml roll script. (Closed)
Patch Set: Code review feedback for the roll script. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/libxml/chromium/chromium-issue-620679.patch
diff --git a/third_party/libxml/chromium/chromium-issue-620679.patch b/third_party/libxml/chromium/chromium-issue-620679.patch
new file mode 100644
index 0000000000000000000000000000000000000000..b2c8db945b976df1762fb0e6e65446b49f98c00d
--- /dev/null
+++ b/third_party/libxml/chromium/chromium-issue-620679.patch
@@ -0,0 +1,24 @@
+diff --git a/third_party/libxml/src/parser.c b/third_party/libxml/src/parser.c
+index e3136123dca6..33786f08354d 100644
+--- a/parser.c
++++ b/parser.c
+@@ -3426,8 +3426,15 @@ xmlParseNameComplex(xmlParserCtxtPtr ctxt) {
+ xmlFatalErr(ctxt, XML_ERR_NAME_TOO_LONG, "Name");
+ return(NULL);
+ }
+- if ((*ctxt->input->cur == '\n') && (ctxt->input->cur[-1] == '\r'))
++ if ((*ctxt->input->cur == '\n') && (ctxt->input->cur[-1] == '\r')) {
++ if (ctxt->input->base > ctxt->input->cur - (len + 1)) {
++ return(NULL);
++ }
+ return(xmlDictLookup(ctxt->dict, ctxt->input->cur - (len + 1), len));
++ }
++ if (ctxt->input->base > ctxt->input->cur - len) {
++ return(NULL);
++ }
+ return(xmlDictLookup(ctxt->dict, ctxt->input->cur - len, len));
+ }
+
+--
+2.12.2.715.g7642488e1d-goog
+
« no previous file with comments | « third_party/libxml/chromium/chromium-issue-599427.patch ('k') | third_party/libxml/chromium/chromium-issue-628581.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698