]>
granicus.if.org Git - curl/log
Daniel Stenberg [Thu, 8 Jun 2017 23:02:12 +0000 (01:02 +0200)]
lib1521: fix compiler warnings on the use of bad 'long' values
Reported-by: Marcel Raad
Bug: https://github.com/curl/curl/commit/
cccac4fb2b20d6ed87da7978408c3ecacc464fe4 #commitcomment-
22453387
Daniel Stenberg [Thu, 8 Jun 2017 23:00:23 +0000 (01:00 +0200)]
setopt: check CURLOPT_ADDRESS_SCOPE option range
... and return error instead of triggering an assert() when being way
out of range.
TheAssassin [Sun, 4 Jun 2017 23:02:56 +0000 (01:02 +0200)]
cmake: Fix inconsistency regarding mbed TLS include directory
Previously, one had to set MBEDTLS_INCLUDE_DIR to make CMake find the
headers, but the system complained that mbed TLS wasn't found due to
MBEDTLS_INCLUDE_DIRS (note the trailing s) was not set. This commit
attempts to fix that.
Closes https://github.com/curl/curl/pull/1541
Ryuichi KAWAMATA [Thu, 8 Jun 2017 14:17:59 +0000 (23:17 +0900)]
examples/multi-uv.c: fix deprecated symbol
Closes #1557
Daniel Stenberg [Thu, 8 Jun 2017 09:06:19 +0000 (11:06 +0200)]
asyn-ares: s/Curl_expire_latest/Curl_expire
Daniel Stenberg [Thu, 8 Jun 2017 06:34:32 +0000 (08:34 +0200)]
expire: remove Curl_expire_latest()
With the introduction of expire IDs and the fact that existing timers
can be removed now and thus never expire, the concept with adding a
"latest" timer is not working anymore as it risks to not expire at all.
So, to be certain the timers actually are in line and will expire, the
plain Curl_expire() needs to be used. The _latest() function was added
as a sort of shortcut in the past that's quite simply not necessary
anymore.
Follow-up to
31b39c40cf90
Reported-by: Paul Harris
Closes #1555
Chris Carlmar [Wed, 7 Jun 2017 21:34:24 +0000 (23:34 +0200)]
configure: fix link with librtmp when specifying path
Bug: https://curl.haxx.se/mail/lib-2017-06/0017.html
Daniel Stenberg [Wed, 7 Jun 2017 11:29:46 +0000 (13:29 +0200)]
file: make speedcheck use current time for checks
... as it would previously just get the "now" timestamp before the
transfer starts and then not update it again.
Closes #1550
Daniel Stenberg [Wed, 7 Jun 2017 12:00:23 +0000 (14:00 +0200)]
metalink: remove unused printf() argument
Daniel Stenberg [Tue, 6 Jun 2017 12:40:36 +0000 (14:40 +0200)]
travis: let some builds *not* use --enable-debug
typecheck-gcc and other things require optimized builds
Closes #1544
Daniel Stenberg [Tue, 6 Jun 2017 12:40:36 +0000 (14:40 +0200)]
README.md: show the coverall coverage on github
Daniel Stenberg [Mon, 5 Jun 2017 22:21:12 +0000 (00:21 +0200)]
lib1521: fix compiler warnings
Daniel Stenberg [Mon, 5 Jun 2017 13:21:26 +0000 (15:21 +0200)]
test1521: make the code < 80 columns wide
Daniel Stenberg [Mon, 5 Jun 2017 12:56:32 +0000 (14:56 +0200)]
test1121: use stricter types to work with typcheck-gcc
Daniel Stenberg [Mon, 5 Jun 2017 12:56:13 +0000 (14:56 +0200)]
typecheck-gcc: allow CURLOPT_STDERR to be NULL too
Daniel Stenberg [Mon, 5 Jun 2017 09:57:47 +0000 (11:57 +0200)]
test1521: test *all* curl_easy_setopt options
mk-lib1521.pl generates a test program (lib1521.c) that calls
curl_easy_setopt() for every known option with a few typical values to
make sure they work (ignoring the return codes).
Some small changes were necessary to avoid asserts and NULL accesses
when doing this.
The perl script needs to be manually rerun when we add new options.
Closes #1543
Dan Fandrich [Mon, 5 Jun 2017 09:26:39 +0000 (11:26 +0200)]
test1538: added "verbose logs" keyword
These error messages are not displayed with --disable-verbose
Daniel Stenberg [Mon, 5 Jun 2017 08:33:51 +0000 (10:33 +0200)]
test1262: verify ftp download with -z for "if older than this"
Marcel Raad [Sun, 4 Jun 2017 22:27:29 +0000 (00:27 +0200)]
curl_ntlm_core: use Curl_raw_toupper instead of toupper
This was the only remaining use of toupper in the entire source code.
Suggested-by: Daniel Stenberg
Daniel Stenberg [Sun, 4 Jun 2017 21:26:41 +0000 (23:26 +0200)]
RELEASE-NOTES: synced with
65ba92650
Marcel Raad [Sun, 4 Jun 2017 14:46:03 +0000 (16:46 +0200)]
curl_ntlm_core: pass unsigned char to toupper
Otherwise, clang on Cygwin64 warns:
curl_ntlm_core.c:525:35: error: array subscript is of type 'char'
[-Werror,-Wchar-subscripts]
dest[2 * i] = (unsigned char)(toupper(src[i]));
^~~~~~~~~~~~~~~
/usr/include/ctype.h:152:25: note: expanded from macro 'toupper'
(void) __CTYPE_PTR[__x]; (toupper) (__x);})
^~~~
Mahmoud Samir Fayed [Sun, 4 Jun 2017 03:32:43 +0000 (06:32 +0300)]
BINDINGS: add Ring binding
Closes https://github.com/curl/curl/pull/1539
Daniel Stenberg [Sat, 3 Jun 2017 22:19:57 +0000 (00:19 +0200)]
CONTRIBUTE.md: mention tests done on pull requests
Daniel Stenberg [Sat, 3 Jun 2017 21:27:13 +0000 (23:27 +0200)]
travis: add coverage, distcheck and cmake builds
Closes #1534
Marcel Raad [Sat, 3 Jun 2017 18:18:34 +0000 (20:18 +0200)]
libtest: fix int-in-bool-context warnings
GCC 7 complained:
‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
Marcel Raad [Sat, 3 Jun 2017 18:12:23 +0000 (20:12 +0200)]
libtest: fix implicit-fallthrough warnings with GCC 7
Marcel Raad [Sat, 3 Jun 2017 18:10:52 +0000 (20:10 +0200)]
x509asn1: fix implicit-fallthrough warning with GCC 7
Marcel Raad [Sat, 3 Jun 2017 09:59:38 +0000 (11:59 +0200)]
curl_sasl: fix unused-variable warning
This fixes the following warning with CURL_DISABLE_CRYPTO_AUTH,
as seen in the autobuilds:
curl_sasl.c:417:9: warning: unused variable 'serverdata'
[-Wunused-variable]
Daniel Stenberg [Fri, 2 Jun 2017 22:45:02 +0000 (00:45 +0200)]
updatemanpages.pl: error out on too old git version
Marcel Raad [Fri, 2 Jun 2017 21:02:54 +0000 (23:02 +0200)]
cyassl: define build macros before including ssl.h
cyassl/ssl.h needs the macros from cyassl/options.h, so define them
before including cyassl/ssl.h the first time, which happens in
urldata.h.
This broke the build on Ubuntu Xenial, which comes with WolfSSL 3.4.8
and therefore redefines the symbols from cyassl/options.h instead of
including the header.
Closes https://github.com/curl/curl/pull/1536
Daniel Stenberg [Fri, 2 Jun 2017 12:13:02 +0000 (14:13 +0200)]
tool_util: remove unused tvdiff_secs and remove tool_ prefix
Closes #1532
Daniel Stenberg [Fri, 2 Jun 2017 15:50:45 +0000 (17:50 +0200)]
dedotdot: fixed output for ".." and "." only input
Found when updating test 1395, which I did to increase test coverage of
this source file...
Closes #1535
Marcel Raad [Fri, 2 Jun 2017 20:05:01 +0000 (22:05 +0200)]
mbedtls: make TU-local variable static
mbedtls_x509_crt_profile_fr is only used locally.
This fixes a missing-variable-declarations warning with clang.
Marcel Raad [Fri, 2 Jun 2017 19:58:48 +0000 (21:58 +0200)]
MD(4|5): silence cast-align clang warning
Unaligned access is on purpose here and the warning is harmless on
affected architectures. GCC knows that, while clang warns on all
architectures.
Daniel Stenberg [Fri, 2 Jun 2017 13:52:59 +0000 (15:52 +0200)]
test1538: fix typo
Daniel Stenberg [Fri, 2 Jun 2017 11:52:55 +0000 (13:52 +0200)]
test1538: verify the libcurl strerror API calls
Daniel Stenberg [Fri, 2 Jun 2017 06:32:36 +0000 (08:32 +0200)]
curl_endian: remove unused functions
Closes #1529
Daniel Stenberg [Fri, 2 Jun 2017 11:16:13 +0000 (13:16 +0200)]
test1537: dedicated tests of the URL (un)escape API calls
Closes #1530
Daniel Stenberg [Fri, 2 Jun 2017 07:25:02 +0000 (09:25 +0200)]
coverage: run event tests too
... the torture ones are commented out only because they are slooooow.
Daniel Stenberg [Thu, 1 Jun 2017 22:59:35 +0000 (00:59 +0200)]
build: provide easy code coverage measuring
Closes #1528
Daniel Stenberg [Thu, 1 Jun 2017 13:03:30 +0000 (15:03 +0200)]
typecheck-gcc.h: check CURLINFO_CERTINFO
... and update the certinfo.c example accordingly.
Fixes https://github.com/curl/curl/issues/846
Daniel Stenberg [Thu, 1 Jun 2017 12:55:05 +0000 (14:55 +0200)]
typecheck-gcc.h: check CURLINFO_TLS_SSL_PTR and CURLINFO_TLS_SESSION
... so that they get the required "struct curl_tlssessioninfo **"
arguments.
Daniel Stenberg [Thu, 1 Jun 2017 12:47:18 +0000 (14:47 +0200)]
typecheck-gcc.h: separate getinfo slist checks from other pointers
Fixes #1524
Marcel Raad [Thu, 1 Jun 2017 15:46:32 +0000 (17:46 +0200)]
curl-compilers.m4: escape square brackets in regex
Otherwise, they are removed in the final configure file.
Also changed sed to "$SED" like in most other calls in this file.
Marcel Raad [Wed, 31 May 2017 20:21:42 +0000 (22:21 +0200)]
curl-compilers.m4: fix compiler_num for clang
"clang -dumpversion" always returns "4.2.1", the GCC version that clang
was initially compatible to. Use "clang -v" instead, which returns the
actual clang version.
Fixes https://github.com/curl/curl/issues/1522
Closes https://github.com/curl/curl/pull/1523
Daniel Stenberg [Wed, 31 May 2017 21:22:46 +0000 (23:22 +0200)]
examples/externalsocket.c: s/closesocket/closecb
... since closesocket is a function in WinSock.
Reported-by: Marcel Raad
Bug: https://github.com/curl/curl/commit/
55fcb8485914700132fd1854c9509b66c955efbe #co
mmitcomment-
22347818
Marcel Raad [Wed, 31 May 2017 17:05:50 +0000 (19:05 +0200)]
lib583: fix compiler warning
Use CURLMcode for variable 'res' and cast to int where necessary
instead of the other way around. Other tests do the same.
This fixes the following clang warning:
lib583.c:68:15: warning: cast from function call of type 'CURLMcode' to
non-matching type 'int' [-Wbad-function-cast]
Daniel Stenberg [Wed, 31 May 2017 11:52:03 +0000 (13:52 +0200)]
CURLOPT_SSH_KEY*.3: typos
Reported-by: Gisle Vanem
Daniel Stenberg [Wed, 31 May 2017 11:39:56 +0000 (13:39 +0200)]
CURLOPT_STREAM_DEPENDS.3: typo
Daniel Stenberg [Wed, 31 May 2017 11:36:51 +0000 (13:36 +0200)]
CURLOPT_FNMATCH_FUNCTION.3: also modified example to avoid fcpp issues
Daniel Stenberg [Wed, 31 May 2017 11:30:04 +0000 (13:30 +0200)]
CURLOPT_FNMATCH_DATA.3: modified example to avoid fcpp issues
Daniel Stenberg [Wed, 31 May 2017 09:56:28 +0000 (11:56 +0200)]
opts: more than 100 more examples for man pages...
Daniel Stenberg [Wed, 31 May 2017 07:55:44 +0000 (09:55 +0200)]
libtest/lib574.c: use correct callback proto
Daniel Stenberg [Wed, 31 May 2017 07:32:04 +0000 (09:32 +0200)]
examples/sampleconv.c: indent changes, made callbacks static
Daniel Stenberg [Wed, 31 May 2017 07:26:51 +0000 (09:26 +0200)]
example/externalsocket.c: make it use CLOSESOCKETFUNCTION too
Marcel Raad [Tue, 30 May 2017 08:07:47 +0000 (10:07 +0200)]
curl-compilers.m4: enable -Wshift-sign-overflow for clang
clang 2.9+ supports -Wshift-sign-overflow, which warns about undefined
behavior on signed left shifts when shifting by too many places.
Ref: https://github.com/curl/curl/issues/1516
Closes https://github.com/curl/curl/pull/1517
Daniel Stenberg [Wed, 31 May 2017 06:45:36 +0000 (08:45 +0200)]
CURLOPT_PROXY.3: fix test 1140 breakage
Jay Satiro [Wed, 31 May 2017 05:40:39 +0000 (01:40 -0400)]
build-wolfssl: Sync config with wolfSSL 3.11
wolfSSL configure script relevant changes from 3.10 to 3.11:
- Async threading support added; disabled by default without async
crypto, which continues to be disabled by default.
wolfSSL configure script relevant changes from 3.11 to 3.11.1 (beta):
- TLS 1.3 beta support added; disabled by default.
For experimenting I put in a comment block the defines needed to enable
TLS 1.3 support (ie the equivalent of --enable-tls13).
Daniel Stenberg [Tue, 30 May 2017 21:35:30 +0000 (23:35 +0200)]
opts: more examples added to man pages
Daniel Stenberg [Tue, 30 May 2017 20:43:34 +0000 (22:43 +0200)]
docs: clarify NO_PROXY further
Fixes #1208
Daniel Stenberg [Tue, 30 May 2017 16:05:33 +0000 (18:05 +0200)]
CURLOPT_PROXY.3: describe the environment variables more
Daniel Stenberg [Mon, 29 May 2017 22:45:54 +0000 (00:45 +0200)]
transfer: init the infilesize from the postfields...
... with a strlen() if no size was set, and do this in the pretransfer
function so that the info is set early. Otherwise, the default strlen()
done on the POSTFIELDS data never sets state.infilesize.
Reported-by: Vincas Razma
Bug: #1294
Jay Satiro [Mon, 29 May 2017 22:04:53 +0000 (18:04 -0400)]
test557: fix ubsan runtime error due to int left shift
- Test curl_msnprintf negative int width arg using INT_MIN instead of
1 << 31 which is undefined behavior.
Closes https://github.com/curl/curl/issues/1516
Jay Satiro [Mon, 29 May 2017 21:38:33 +0000 (17:38 -0400)]
mbedtls: fix variable shadow warning
vtls/mbedtls.c:804:69: warning: declaration of 'entropy' shadows a global declaration [-Wshadow]
CURLcode Curl_mbedtls_random(struct Curl_easy *data, unsigned char *entropy,
^~~~~~~
Daniel Stenberg [Mon, 29 May 2017 07:42:03 +0000 (09:42 +0200)]
RELEASE-NOTES: synced with
3aaac8c2f
Dan Fandrich [Sun, 28 May 2017 21:07:35 +0000 (23:07 +0200)]
tests: removed some redundant empty <stdout> sections
Dan Fandrich [Sun, 28 May 2017 18:57:47 +0000 (20:57 +0200)]
runtests.pl: removed <precommand> feature
This hasn't been used in over a decade. <precheck> can still be used to
run commands before the main test.
Daniel Stenberg [Sat, 27 May 2017 21:11:26 +0000 (23:11 +0200)]
opts: more examples added in option man pages
Dan Fandrich [Sat, 27 May 2017 12:30:24 +0000 (14:30 +0200)]
runtests.pl: removed unused arguments to valgrindparse
Daniel Stenberg [Thu, 25 May 2017 19:54:26 +0000 (21:54 +0200)]
TODO: 6.4 is done, send telnet data in chunks
Phil Crump [Thu, 25 May 2017 11:51:35 +0000 (12:51 +0100)]
docs/CURLOPT_SSLVERSION.3: Correct define name in example
Closes #1509
Daniel Stenberg [Thu, 25 May 2017 11:01:44 +0000 (13:01 +0200)]
ssh: fix 'left' may be used uninitialized
follow-up to
f31760e63b4e
Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/pull/1495#issuecomment-
303982793
Michael Kaufmann [Sat, 20 May 2017 17:39:51 +0000 (19:39 +0200)]
time: fix type conversions and compiler warnings
Fix bugs and compiler warnings on systems with 32-bit long and
64-bit time_t.
Reviewed-by: Daniel Stenberg
Closes #1499
Marcel Raad [Wed, 24 May 2017 09:56:38 +0000 (11:56 +0200)]
examples: fix Wimplicit-fallthrough warnings
This is contained in -Wextra with GCC 7.
Anatol Belski [Fri, 10 Mar 2017 11:59:36 +0000 (12:59 +0100)]
winbuild: fix the nghttp2 build
Closes #1321
Sergei Nikulov [Tue, 23 May 2017 22:03:29 +0000 (01:03 +0300)]
LDAP: documentation update per #878 changes (#1506)
Daniel Stenberg [Tue, 23 May 2017 08:32:18 +0000 (10:32 +0200)]
redirect: store the "would redirect to" URL when max redirs is reached
Test 1261 added to verify.
Reported-by: Lloyd Fournier
Fixes #1489
Closes #1497
Sergei Nikulov [Tue, 23 May 2017 21:14:13 +0000 (00:14 +0300)]
LDAP: fixed checksrc issue
Sergei Nikulov [Tue, 23 May 2017 19:45:39 +0000 (22:45 +0300)]
LDAP: using ldap_bind_s on Windows with methods (#878)
* LDAP: using ldap_bind_s on Windows with methods(BASIC/DIGEST/NTLM/AUTONEG)
* ldap: updated per build options handling
* ldap: fixed logic for auth selection
Akhil Kedia [Mon, 22 May 2017 08:34:45 +0000 (17:34 +0900)]
cmake: fix build on Ubuntu 14.04
Fixed a syntax error with setting cache variables (The type and
docstring were missing), resulting in build errors. Quoted the
CURL_CA_PATH and CURL_CA_BUNDLE otherwise the path was written without
quotes in C code, resulting in build errors.
Closes #1503
Signed-off-by: Akhil <akhil.kedia@samsung.com>
Daniel Stenberg [Tue, 23 May 2017 05:41:52 +0000 (07:41 +0200)]
url: fix declaration of 'pipe' shadows a global declaration
follow-up to
4cdb1be8246c
Kamil Dudka [Mon, 22 May 2017 17:00:15 +0000 (19:00 +0200)]
memdebug: fix compilation failure
.... caused by a typo in the last commit (fixing issue #1504):
memdebug.c: In function ‘curl_fclose’:
memdebug.c:444:3: error: implicit declaration of function
‘DEBUGDEBUGASSERT’ [-Werror=implicit-function-declaration]
Daniel Stenberg [Mon, 22 May 2017 11:58:17 +0000 (13:58 +0200)]
assert: avoid, use DEBUGASSERT instead!
... as it does extra checks to actually work.
Reported-by: jonrumsey at github
Fixes #1504
Simon Warta [Mon, 1 May 2017 22:26:08 +0000 (00:26 +0200)]
cmake: remove unused variables: GNUTLS_ENABLED, NSS_ENABLED
Simon Warta [Mon, 1 May 2017 22:18:18 +0000 (00:18 +0200)]
cmake: remove CURL_CA_BUNDLE from cmake TODO
Simon Warta [Mon, 1 May 2017 22:12:55 +0000 (00:12 +0200)]
cmake: auto detection of CURL_CA_BUNDLE/CURL_CA_PATH
Closes #1461
Simon Warta [Mon, 1 May 2017 20:15:15 +0000 (22:15 +0200)]
cmake: add CURL_CA_BUNDLE/CURL_CA_FALLBACK/CURL_CA_PATH options
Simon Warta [Sun, 26 Feb 2017 21:41:33 +0000 (22:41 +0100)]
cmake: Add CURL_CA_FALLBACK to curl_config.h.cmake
This is for symmetry with the autoconf generated curl_config.h.in
Daniel Stenberg [Sat, 20 May 2017 22:26:27 +0000 (00:26 +0200)]
RELEASE-NOTES: synced with
052a14e3c
Michael Kaufmann [Tue, 16 May 2017 19:29:59 +0000 (21:29 +0200)]
tests: stabilize test 1034
Pass the invalid domain name on stdin. On some systems, the test
framework cannot pass invalid UTF-8 sequences on the command line.
Closes #1488
Daniel Stenberg [Thu, 18 May 2017 11:04:52 +0000 (13:04 +0200)]
ssh: ignore timeouts during disconnect
... as otherwise it risks not cleaning up the libssh2 handle properly
which leads to memory leak!
Assisted-by: Joel Depooter
Closes #1495
Closes #1479
Bug: https://curl.haxx.se/mail/lib-2017-04/0024.html
Daniel Stenberg [Fri, 19 May 2017 12:25:16 +0000 (14:25 +0200)]
ghiper.c/hiperfifo.c: add comment about missing timer functionality
It takes someone to read up on the APIs of these libraries to figure out
how to do this correctly.
Reported-by: Michael Kaufmann
Closes #1253
Daniel Stenberg [Fri, 19 May 2017 12:16:37 +0000 (14:16 +0200)]
asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input
That means delete the timer.
Reported-by: Michael Kaufmann
Ref: #1253
Daniel Stenberg [Thu, 18 May 2017 21:11:45 +0000 (23:11 +0200)]
cmdline-opts/write-out.d: s/-L/--location
Since the man page generator wants the long option name version to
generate the proper output.
Bernhard M. Wiedemann [Wed, 17 May 2017 13:54:19 +0000 (15:54 +0200)]
mkhelp.pl: do not add current time into curl binary
... as part of hugehelpgz rodata to make build reproducible.
See https://reproducible-builds.org/ for why this is good
Closes #1490
Daniel Stenberg [Wed, 17 May 2017 08:55:12 +0000 (10:55 +0200)]
oauth2-bearer.d: mention the <token> argument
Nick Zitzmann [Wed, 17 May 2017 00:21:12 +0000 (19:21 -0500)]
darwinssl: Fix exception when processing a client-side certificate file
if no error was raised by the API but the SecIdentityRef was null
Fixes #1450
Daniel Stenberg [Tue, 16 May 2017 14:13:03 +0000 (16:13 +0200)]
curl_sasl: fix build error with CURL_DISABLE_CRYPTO_AUTH + USE_NTLM
Reported-by: wyattoday at github
Fixes #1487
Daniel Stenberg [Tue, 16 May 2017 06:49:11 +0000 (08:49 +0200)]
docs/cmdline-opts/config.d: edit for language
Daniel Stenberg [Mon, 15 May 2017 21:19:45 +0000 (23:19 +0200)]
RELEASE-NOTES: synced with
eb16305e6