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

Side by Side Diff: third_party/libxml/chromium/libxml2-2.9.4-security-CVE-2017-7376-nanohttp-out-of-bounds-write.patch

Issue 2797923004: Improve XML serialization, URI parsing, and XPath node set processing. (Closed)
Patch Set: Rebase. 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
OLDNEW
(Empty)
1 https://bugzilla.gnome.org/show_bug.cgi?id=780690
2
3 --- src/uri.c
4 +++ src/uri.c
5 @@ -12,6 +12,7 @@
6 #include "third_party/libxml/src/libxml.h"
7
8 #include <string.h>
9 +#include <limits.h>
10
11 #include "third_party/libxml/src/include/libxml/xmlmemory.h"
12 #include "third_party/libxml/src/include/libxml/uri.h"
13 @@ -334,7 +335,7 @@ xmlParse3986Port(xmlURIPtr uri, const char **str)
14 cur++;
15 }
16 if (uri != NULL)
17 - uri->port = port & INT_MAX; /* port value modulo INT_MAX+1 */
18 + uri->port = port & USHRT_MAX; /* port value modulo USHRT_MAX+1 */
19 *str = cur;
20 return(0);
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698