Backport from HEAD:

* uri/apr_uri.c (apr_parse_uri): Fix input validation to avoid
passing negative length to memcpy for malformed IPv6 literal
addresses.

* test/testuri.c: Add tests for such malformed URIs.

Reviewed by: trawick, madhum


git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/APU_0_9_BRANCH@59133 13f79535-47bb-0310-9956-ffa450edef68
3 files changed