bf3dbfd29e4d65f485b963bb5598b653e65b5f82 |
|
02-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-http: test-http-url - add some tricky invalid numeric hostname URLs
Try to get the numeric octet parser to fail. The RFCs specify that we should
fall back onto parsing them as domain names instead, and hence the unexpected
legitimacy of out-of-range numbers.
NOTE: This causes make check to report the following error:
http url valid [11]: http_url_parse(http://127.0.0.284/this/also/reverts/to/DNS) : ok
test-http-url.c:328: Assert failed: urlp->have_host_ip == urlt->have_host_ip
http url valid [11] .................................................. : FAILED
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
ffb2949c6cc3a72b4193c47a2f7fd8ddc7fd69e7 |
|
02-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
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@dovecot.fi> |