]> granicus.if.org Git - curl/commitdiff
Added test 626 to reproduce an infinite loop when given an invalid
authorDan Fandrich <dan@coneharvesters.com>
Tue, 18 Mar 2008 17:05:29 +0000 (17:05 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 18 Mar 2008 17:05:29 +0000 (17:05 +0000)
SFTP quote command reported by Vincent Le Normand, but left it disabled.

CHANGES
tests/data/DISABLED
tests/data/Makefile.am
tests/data/test626 [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index f8245c6b22122138fde08034dd8366afccd37756..adf5958b95f6d3e6d304ec57456e398b585074a8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Daniel Fandrich (18 Mar 2008)
+- Added test 626 to reproduce an infinite loop when given an invalid
+  SFTP quote command reported by Vincent Le Normand, but left it disabled.
+
 Michal Marek (18 Mar 2008)
 - Added curl_easy_getinfo typechecker.
 
index eb8bc31901e2881ac201774a921b4f3c7bd242c7..e596ddcc1b43eb357cc677f684af86ffc47b19a7 100644 (file)
@@ -4,3 +4,4 @@
 # per line.
 # Lines starting with '#' letters are treated as comments.
 617
+626
index 9a0debc27511ff3822fb3afadc713f42800e3bb8..9160133af110743b3e6bae8d6a5f3b346adaafcd 100644 (file)
@@ -49,7 +49,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test546 test1013 test1014 test1015 test547 test548 test549 test550       \
  test551 test552 test1016 test1017 test1018 test1019 test1020 test553      \
  test1021 test1022 test1023 test309 test616 test617 test618 test619        \
- test620 test621 test622 test623 test624 test625
+ test620 test621 test622 test623 test624 test625 test626
 
 filecheck:
        @mkdir test-place; \
diff --git a/tests/data/test626 b/tests/data/test626
new file mode 100644 (file)
index 0000000..46360fb
--- /dev/null
@@ -0,0 +1,42 @@
+<testcase>
+<info>
+<keywords>
+SFTP
+pre-quote
+FAILURE
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+sftp
+</server>
+ <name>
+SFTP invalid quote command
+ </name>
+ <command>
+--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "invalid-command foo bar" sftp://%HOSTIP:%SSHPORT%PWD/log/file626.txt
+</command>
+<file name="log/file626.txt">
+Test file for rename test
+</file>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<file name="log/file626-renamed.txt">
+Test file for rename test
+</file>
+<valgrind>
+disable
+</valgrind>
+</verify>
+</testcase>