1
--- 2.0/srclib/apr-util/test/testuri.c
2
+++ build-tree/apache2/srclib/apr-util/test/testuri.c
5
struct aup_test aup_tests[] =
7
+ { "http://[/::1]/index.html", APR_EGENERAL },
8
+ { "http://[", APR_EGENERAL },
9
+ { "http://[?::1]/index.html", APR_EGENERAL },
12
"http://127.0.0.1:9999/asdf.html",
13
0, "http", "127.0.0.1:9999", NULL, NULL, "127.0.0.1", "9999", "/asdf.html", NULL, NULL, 9999
14
--- 2.0/srclib/apr-util/uri/apr_uri.c
15
+++ build-tree/apache2/srclib/apr-util/uri/apr_uri.c
17
if (*hostinfo == '[') {
23
- } while (s >= hostinfo && *s != ':' && *s != ']');
24
- if (s < hostinfo || *s == ']') {
25
+ s = memchr(hostinfo, ']', uri - hostinfo);
27
+ return APR_EGENERAL;
30
s = NULL; /* no port */