Skip to content
0.2.0-dev Download ZIP
36 lines ·1.3 KB Raw
1diff --git a/thirdparty/miniupnpc/src/minixml.c b/thirdparty/miniupnpc/src/minixml.c
2index 935ec443e7..b102f83538 100644
3--- a/thirdparty/miniupnpc/src/minixml.c
4+++ b/thirdparty/miniupnpc/src/minixml.c
5@@ -2,10 +2,10 @@
6 /* vim: tabstop=4 shiftwidth=4 noexpandtab
7 * minixml.c : the minimum size a xml parser can be ! */
8 /* Project : miniupnp
9- * webpage: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
10+ * webpage: http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
11 * Author : Thomas Bernard
12
13-Copyright (c) 2005-2017, Thomas BERNARD
14+Copyright (c) 2005-2026, Thomas BERNARD
15 All rights reserved.
16
17 Redistribution and use in source and binary forms, with or without
18@@ -34,7 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
19 #include <string.h>
20 #include "minixml.h"
21
22-/* parseatt : used to parse the argument list
23+/* parseatt : used to parse the attribute list
24 * return 0 (false) in case of success and -1 (true) if the end
25 * of the xmlbuffer is reached. */
26 static int parseatt(struct xmlparser * p)
27@@ -63,6 +63,9 @@ static int parseatt(struct xmlparser * p)
28 if(p->xml >= p->xmlend)
29 return -1;
30 }
31+ /* p->xml points now to the character right after the '=' */
32+ if(p->xml >= p->xmlend)
33+ return -1;
34 while(IS_WHITE_SPACE(*p->xml))
35 {
36 p->xml++;