From ec08e2f9f24da5974be1ab222c5703fd9fb3722f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 30 Sep 2007 22:40:24 +0000 Subject: Alex Fishman reported a curl_easy_escape() problem that was made the function do wrong on all input bytes that are >= 0x80 (decimal 128) due to a signed / unsigned mistake in the code. I fixed it and added test case 543 to verify. --- tests/data/Makefile.am | 2 +- tests/data/test543 | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/data/test543 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 22ddb7f2c..994e5dfd1 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -44,4 +44,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test409 test613 test614 test700 test701 test702 test704 test705 test703 \ test706 test707 test350 test351 test352 test353 test289 test540 test354 \ test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006 \ - test615 test1007 test541 test1010 test1011 test1012 + test615 test1007 test541 test1010 test1011 test1012 test542 test543 diff --git a/tests/data/test543 b/tests/data/test543 new file mode 100644 index 000000000..455633037 --- /dev/null +++ b/tests/data/test543 @@ -0,0 +1,35 @@ + + + +curl_easy_escape + + +# Server-side + +# Client-side + + +none + + +lib543 + + +curl_easy_escape + + +- + + + + +# Verify data after the test has been "shot" +# +# There's no MTDM in the protocol here since this code doesn't ask for the +# time/date of the file + + +%9C%26K%3DI%04%A1%01%E0%D8%7C%20%B7%EFS%29%FA%1DW%E1 + + + -- cgit v1.2.3