From 8e65877870c1fac920b65219adec720df810aab9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 24 Mar 2017 10:14:21 +0100 Subject: curl: check for end of input in writeout backslash handling Reported-by: Brian Carpenter Added test 1442 to verify --- tests/data/Makefile.inc | 2 +- tests/data/test1442 | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1442 (limited to 'tests') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index a6a06b81f..edeb9000c 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -153,7 +153,7 @@ test1408 test1409 test1410 test1411 test1412 test1413 test1414 test1415 \ test1416 test1417 test1418 test1419 test1420 test1421 test1422 test1423 \ test1424 \ test1428 test1429 test1430 test1431 test1432 test1433 test1434 test1435 \ -test1436 test1437 test1438 test1439 test1440 test1441 \ +test1436 test1437 test1438 test1439 test1440 test1441 test1442 \ \ test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \ test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \ diff --git a/tests/data/test1442 b/tests/data/test1442 new file mode 100644 index 000000000..255a4c9ff --- /dev/null +++ b/tests/data/test1442 @@ -0,0 +1,35 @@ + + + +--write-out +FILE + + +# Server-side + + + +# Client-side + + +file + + + +Check --write-out with trailing \ + + +file://localhost/%PWD/log/non-existent-file.txt --write-out '\' + + + +# Verify data + + +37 + + +\ + + + -- cgit v1.2.3