curl_path: make Curl_get_pathname use dynbuf

... instead of malloc and memcpy

- unit test 2604 verifies Curl_get_pathname()

Closes #13550
This commit is contained in:
Daniel Stenberg 2024-05-07 14:28:29 +02:00
parent c294f9cb56
commit cd3463d99e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 168 additions and 35 deletions

View file

@ -252,7 +252,7 @@ test2400 test2401 test2402 test2403 test2404 test2405 test2406 \
\
test2500 test2501 test2502 test2503 \
\
test2600 test2601 test2602 test2603 \
test2600 test2601 test2602 test2603 test2604 \
\
test3000 test3001 test3002 test3003 test3004 test3005 test3006 test3007 \
test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \

22
tests/data/test2604 Normal file
View file

@ -0,0 +1,22 @@
<testcase>
<info>
<keywords>
unittest
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<features>
unittest
sftp
</features>
<name>
Curl_get_pathname unit test
</name>
</client>
</testcase>