From a6b08c674f3d2fdd91fa6419076e756b07c6630c Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sat, 12 Jan 2013 20:57:01 +0000 Subject: Fix handling of junk input --- utils/nsurl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/nsurl.c b/utils/nsurl.c index 18577b65d..23e177e05 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -720,6 +720,9 @@ static nserror nsurl__create_from_section(const char * const url_s, break; } + if (end < start) + end = start; + length = end - start; /* Stage 1: Normalise the required section */ -- cgit v1.2.3