diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-08-16 11:52:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-08-16 11:55:04 +0200 |
commit | f15a88f2b25ee44d8c8d3bdcf2508fdf50f8b868 (patch) | |
tree | b42a5187543301a88712f464eec1f440b36d4a42 /tests | |
parent | 5ca96cb84410270e233c92bf1b2583cba40c3fad (diff) |
glob: error out on range overflow
The new multiply() function detects range value overflows. 32bit
machines will overflow on a 32bit boundary while 64bit hosts support
ranges up to the full 64 bit range.
Added test 1236 to verify.
Bug: http://curl.haxx.se/bug/view.cgi?id=1267
Reported-by: Will Dietz
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/Makefile.am | 1 | ||||
-rw-r--r-- | tests/data/test1236 | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index f661b7103..dd7f6f95d 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -94,6 +94,7 @@ test1208 test1209 test1210 test1211 test1212 test1213 test1214 test1215 \ test1216 test1217 test1218 test1219 \ test1220 test1221 test1222 test1223 test1224 test1225 test1226 test1227 \ test1228 test1229 test1230 test1231 test1232 test1233 test1234 test1235 \ +test1236 \ \ test1300 test1301 test1302 test1303 test1304 test1305 test1306 test1307 \ test1308 test1309 test1310 test1311 test1312 test1313 test1314 test1315 \ diff --git a/tests/data/test1236 b/tests/data/test1236 new file mode 100644 index 000000000..0829be313 --- /dev/null +++ b/tests/data/test1236 @@ -0,0 +1,33 @@ +<testcase> +<info> +<keywords> +globbing +FAILURE +</keywords> +</info> +# Server-side +<reply> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +[] globbing overflowing the range counter + </name> +# 2^62 == 4611686018427387904 + <command> +"%HOSTIP:%HTTPPORT/1234[0-1]{" "%HOSTIP:%HTTPPORT/[1-4611686018427387904][1-4611686018427387904]" +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +# 3 == CURLE_URL_MALFORMAT +<errorcode> +3 +</errorcode> +</verify> +</testcase> |