]> granicus.if.org Git - curl/commitdiff
test1427: verify command line parser integer overflow detection
authorDaniel Stenberg <daniel@haxx.se>
Sun, 6 Aug 2017 19:33:25 +0000 (21:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 Aug 2017 07:38:57 +0000 (09:38 +0200)
tests/data/Makefile.inc
tests/data/test1427 [new file with mode: 0644]

index 59f692e8f40f10be73e17b8de88904f2b75d848a..1c637f8f0e6924601cf94bfac2b267fc24fbc6ce 100644 (file)
@@ -151,7 +151,7 @@ test1396 test1397 test1398 test1399 \
 test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \
 test1408 test1409 test1410 test1411 test1412 test1413 test1414 test1415 \
 test1416 test1417 test1418 test1419 test1420 test1421 test1422 test1423 \
-test1424 test1425 test1426 \
+test1424 test1425 test1426 test1427 \
 test1428 test1429 test1430 test1431 test1432 test1433 test1434 test1435 \
 test1436 test1437 test1438 test1439 test1440 test1441 test1442 test1443 \
 test1444 test1445 test1446                            test1450 test1451 \
diff --git a/tests/data/test1427 b/tests/data/test1427
new file mode 100644 (file)
index 0000000..03cab4b
--- /dev/null
@@ -0,0 +1,29 @@
+<testcase>
+<info>
+<keywords>
+integer overflow
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+none
+</server>
+ <name>
+too large -m timeout value
+ </name>
+ <command>
+http://%HOSTIP:%HTTPPORT/1427 -m 184467440737095510
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+2
+</errorcode>
+</verify>
+</testcase>