summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test395: HTTP with overflow Content-Length valuebagder/http-stricter-content-lengthDaniel Stenberg2018-01-092-1/+56
|
* test394: verify abort of rubbish in Content-Length: valueDaniel Stenberg2018-01-092-1/+60
|
* test393: verify --max-filesize with excessive Content-LengthDaniel Stenberg2018-01-092-1/+62
|
* HTTP: bail out on negative Content-Length: valuesDaniel Stenberg2018-01-092-20/+31
| | | | | | | | ... and make the max filesize check trigger if the value is too big. Updates test 178. Fixes #2212
* COPYING: it's 2018!Daniel Stenberg2018-01-091-1/+1
|
* progress: calculate transfer speed on milliseconds if possibleDaniel Stenberg2018-01-084-18/+24
| | | | | | | to increase accuracy for quick transfers Fixes #2200 Closes #2206
* scripts: allow all perl scripts to be run directlyJay Satiro2018-01-0715-10/+11
| | | | | | | | - Enable execute permission (chmod +x) - Change interpreter to /usr/bin/env perl Closes https://github.com/curl/curl/pull/2222
* mail-rcpt.d: fix short-text descriptionJay Satiro2018-01-072-2/+2
|
* build: remove HAVE_LIMITS_H checkJay Satiro2018-01-0529-62/+2
| | | | | | | | .. because limits.h presence isn't optional, it's required by C89. Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2 Closes https://github.com/curl/curl/pull/2215
* openssl: fix memory leak of SSLKEYLOGFILE filenameJay Satiro2018-01-031-1/+2
| | | | | | | - Free the copy of SSLKEYLOGFILE env returned by curl_getenv during ossl initialization. Caught by ASAN.
* Revert "curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX"Jay Satiro2018-01-021-2/+1
| | | | | | | | | | This reverts commit c97648b55080343bb371522bf4233e94a2a13a99. SIZEOF_LONG should not be checked in system.h since that macro is only defined when building libcurl. Ref: https://github.com/curl/curl/pull/2186#issuecomment-354767080 Ref: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
* test1554: improve the error handlingMichael Kaufmann2017-12-301-0/+6
|
* test1554: add global initialization and cleanupMichael Kaufmann2017-12-301-1/+5
|
* curl_version_info.3: call the argument 'age'Daniel Stenberg2017-12-291-2/+2
| | | | | Reported-by: Pete Lomax Bug: https://curl.haxx.se/mail/lib-2017-12/0074.html
* brotli: data at the end of content can be lostMikalai Ananenka2017-12-273-4/+202
| | | | | | | | | | Decoding loop implementation did not concern the case when all received data is consumed by Brotli decoder and the size of decoded data internally hold by Brotli decoder is greater than CURL_MAX_WRITE_SIZE. For content with unencoded length greater than CURL_MAX_WRITE_SIZE this can result in the loss of data at the end of content. Closes #2194
* examples/cacertinmem: ignore cert-already-exists errorJay Satiro2017-12-262-125/+92
| | | | | | | | | | | | | | | - Ignore X509_R_CERT_ALREADY_IN_HASH_TABLE errors in the CTX callback since it's possible the cert may have already been loaded by libcurl. - Remove the EXAMPLE code in the CURLOPT_SSL_CTX_FUNCTION.3 doc. Instead have it direct the reader to this cacertinmem.c example. - Fix the CA certificate to use the right CA for example.com, Digicert. Bug: https://curl.haxx.se/mail/lib-2017-12/0057.html Reported-by: Thomas van Hesteren Closes https://github.com/curl/curl/pull/2182
* tool_getparam: Support size modifiers for --max-filesizeGisle Vanem2017-12-263-36/+69
| | | | | | | | | | | | | - Move the size modifier detection code from limit-rate to its own function so that it can also be used with max-filesize. Size modifiers are the suffixes such as G (gigabyte), M (megabyte) etc. For example --max-filesize 1G Ref: https://curl.haxx.se/mail/archive-2017-12/0000.html Closes https://github.com/curl/curl/pull/2179
* build: Fixed incorrect script termination from commit ad1dc10e61Steve Holme2017-12-221-1/+1
|
* Makefile.vc: Added our standard copyright headerSteve Holme2017-12-221-0/+22
|
* winbuild: Added support for VC15Steve Holme2017-12-223-4/+4
|
* build: Added Visual Studio 2017 project filesSteve Holme2017-12-2213-7/+5866
|
* build-wolfssl.bat: Added support for VC15Steve Holme2017-12-221-3/+16
|
* build-openssl.bat: Added support for VC15Steve Holme2017-12-221-3/+13
|
* curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UXDimitrios Apostolou2017-12-221-1/+2
| | | | Closes https://github.com/curl/curl/pull/2186
* examples/rtsp: fix error handling macrosMattias Fornander2017-12-221-2/+2
| | | | Closes https://github.com/curl/curl/pull/2185
* curl_easy_reset: release mime-related data.Patrick Monnerat2017-12-205-9/+78
| | | | | | | | | | | Move curl_mime_initpart() and curl_mime_cleanpart() calls to lower-level functions dealing with UserDefined structure contents. This avoids memory leakages on curl-generated part mime headers. New test 2073 checks this using the cli tool --next option: it triggers a valgrind error if bug is present. Bug: https://curl.haxx.se/mail/lib-2017-12/0060.html Reported-by: Martin Galvan
* content_encoding: rework zlib_inflatePatrick Monnerat2017-12-203-54/+305
| | | | | | | | | | | | - When zlib version is < 1.2.0.4, process gzip trailer before considering extra data as an error. - Inflate with Z_BLOCK instead of Z_SYNC_FLUSH to maximize correct data and minimize corrupt data output. - Do not try to restart deflate decompression in raw mode if output has started or if the leading data is not available anymore. - New test 232 checks inflating raw-deflated content. Closes #2068
* brotli: allow compiling with version 0.6.0.Patrick Monnerat2017-12-201-0/+4
| | | | | Some error codes were not yet defined in brotli 0.6.0: do not issue code for them in this case.
* CURLOPT_READFUNCTION.3: refer to argument with correct nameDaniel Stenberg2017-12-131-2/+2
| | | | | | Bug: #2175 [ci skip]
* rand: add a clang-analyzer work-aroundDaniel Stenberg2017-12-131-0/+6
| | | | | | scan-build would warn on a potential access of an uninitialized buffer. I deem it a false positive and had to add this somewhat ugly work-around to silence it.
* krb5: fix a potential access of uninitialized memoryDaniel Stenberg2017-12-131-1/+2
| | | | A scan-build warning.
* conncache: fix a return code [regression]Daniel Stenberg2017-12-121-1/+1
| | | | | This broke in 07cb27c98e. Make sure to return 'result' properly. Pointed out by scan-build!
* curl: support >256 bytes warning messsagesDaniel Stenberg2017-12-121-2/+6
| | | | Bug: #2174
* libssh: fix a syntax error in configure.acMichael Kaufmann2017-12-121-1/+1
| | | | | | Follow-up to c92d2e1 Closes #2172
* examples/smtp-mail.c: use separate defines for options and mailDaniel Stenberg2017-12-121-16/+20
| | | | | | | ... to make it clearer that the options want address-only, while the headers in an email can also have the real name. Assisted-by: Sean MacLennan
* THANKS: added missing namesDaniel Stenberg2017-12-122-0/+15
| | | | ... as I reran the contrithanks script after the mailmap name fixups.
* mailmap: added/clarified several namesDaniel Stenberg2017-12-122-1/+10
|
* setopt: less *or equal* than INT_MAX/1000 should be fineDaniel Stenberg2017-12-121-3/+3
| | | | | | | | | | ... for the CURLOPT_TIMEOUT, CURLOPT_CONNECTTIMEOUT and CURLOPT_SERVER_RESPONSE_TIMEOUT range checks. Reported-by: Dominik Hölzl Bug: https://curl.haxx.se/mail/lib-2017-12/0037.html Closes #2173
* vtls: replaced getenv() with curl_getenv()dmitrykos2017-12-121-1/+4
| | | | | | | | | Fixed undefined symbol of getenv() which does not exist when compiling for Windows 10 App (CURL_WINDOWS_APP). Replaced getenv() with curl_getenv() which is aware of getenv() absence when CURL_WINDOWS_APP is defined. Closes #2171
* RELEASE-NOTES: synced with 3b9ea70eeDaniel Stenberg2017-12-111-5/+37
|
* TODO: Expose tried IP addresses that failedDaniel Stenberg2017-12-111-0/+8
| | | | | | Suggested-by: Rainer Canavan Closes #2126
* curl.1: mention http:// and https:// as valid proxy prefixesDaniel Stenberg2017-12-111-0/+4
|
* curl.1: documented two missing valid exit codesDaniel Stenberg2017-12-111-0/+4
|
* CURLOPT_DNS_LOCAL_IP4.3: fixed the seel also to not self-referenceDaniel Stenberg2017-12-111-1/+1
|
* Revert "curl: don't set CURLOPT_INTERLEAVEDATA"Daniel Stenberg2017-12-1110-1/+10
| | | | | | | | | This reverts commit 9ffad8eb1329bb35c8988115ac7ed85cf91ef955. It was actually added rather recently in 8e8afa82cbb629 due to a crash that would otherwise happen in the RTSP code. As I don't think we've fixed that behavior yet, we better keep this work-around until we have fixed it better.
* tests: mark data files as non-executable in gitMichael Kaufmann2017-12-105-0/+0
|
* tests: update .gitignore for libtestsMichael Kaufmann2017-12-101-1/+1
|
* multi_done: prune DNS cacheDaniel Stenberg2017-12-102-47/+54
| | | | | | | | | | | | | Prune the DNS cache immediately after the dns entry is unlocked in multi_done. Timed out entries will then get discarded in a more orderly fashion. Test506 is updated Reported-by: Oleg Pudeyev Fixes #2169 Closes #2170
* mailmap: fixup two old git Author "aliases"Daniel Stenberg2017-12-101-0/+2
|
* openssl: Disable file buffering for Win32 SSLKEYLOGFILEJay Satiro2017-12-101-0/+4
| | | | | | | | | | | | Prior to this change SSLKEYLOGFILE used line buffering on WIN32 just like it does for other platforms. However, the Windows CRT does not actually support line buffering (_IOLBF) and will use full buffering (_IOFBF) instead. We can't use full buffering because multiple processes may be writing to the file and that could lead to corruption, and since full buffering is the only buffering available this commit disables buffering for Windows SSLKEYLOGFILE entirely (_IONBF). Ref: https://github.com/curl/curl/pull/1346#issuecomment-350530901