dovecot-2.2: lib-http: test-http-url - make port number test cas...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 2 15:23:26 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/f21e0f0e42a3
changeset: 17558:f21e0f0e42a3
user:      Phil Carmody <phil at dovecot.fi>
date:      Wed Jul 02 18:21:24 2014 +0300
description:
lib-http: test-http-url - make port number test cases harder
Exploit common parser weakeneses - out by one, and overflow detection failure.

NOTE: causes make check to fail with the following error:
http url invalid [13]: parse http://example.com:72817/index.html ..... : FAILED
http url invalid [13] ................................................ : FAILED

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/lib-http/test-http-url.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 9b9b6dc7dd9b -r f21e0f0e42a3 src/lib-http/test-http-url.c
--- a/src/lib-http/test-http-url.c	Wed Jul 02 18:21:24 2014 +0300
+++ b/src/lib-http/test-http-url.c	Wed Jul 02 18:21:24 2014 +0300
@@ -372,7 +372,9 @@
 	},{
 		.url = "http://example%00.com/index.html"
 	},{
-		.url = "http://example.com:65539/index.html"
+		.url = "http://example.com:65536/index.html"
+	},{
+		.url = "http://example.com:72817/index.html"
 	},{
 		.url = "http://example.com/settings/%00/"
 	},{


More information about the dovecot-cvs mailing list