| Index: third_party/libxml/src/uri.c
|
| diff --git a/third_party/libxml/src/uri.c b/third_party/libxml/src/uri.c
|
| index 2bd5720de97ca09277141be181d05ff2fe1a2e5a..4b24b1365a01ee18a32488d76b140189634582fc 100644
|
| --- a/third_party/libxml/src/uri.c
|
| +++ b/third_party/libxml/src/uri.c
|
| @@ -12,6 +12,7 @@
|
| #include "libxml.h"
|
|
|
| #include <string.h>
|
| +#include <limits.h>
|
|
|
| #include <libxml/xmlmemory.h>
|
| #include <libxml/uri.h>
|
| @@ -334,7 +335,7 @@ xmlParse3986Port(xmlURIPtr uri, const char **str)
|
| cur++;
|
| }
|
| if (uri != NULL)
|
| - uri->port = port & INT_MAX; /* port value modulo INT_MAX+1 */
|
| + uri->port = port & USHRT_MAX; /* port value modulo USHRT_MAX+1 */
|
| *str = cur;
|
| return(0);
|
| }
|
|
|