Dan Fandrich [Wed, 22 Oct 2008 05:46:29 +0000 (05:46 +0000)]
Changed some arrays of char* to arrays of char[] to reduce data size and
run-time relocations.
Dan Fandrich [Tue, 21 Oct 2008 23:15:19 +0000 (23:15 +0000)]
Compile away some more code in the CURL_DISABLE_PROXY case.
Yang Tse [Tue, 21 Oct 2008 17:54:18 +0000 (17:54 +0000)]
some more temporary magic for the icc seg-fault issue
Dan Fandrich [Tue, 21 Oct 2008 07:10:25 +0000 (07:10 +0000)]
Fixed some problems with SFTP range support to fix test cases 634 through 637.
Yang Tse [Tue, 21 Oct 2008 01:58:23 +0000 (01:58 +0000)]
Charles Hardin patch:
- handles the EINPROGRESS for UDP connects
- uses closesocket instead of close on some paths that were noticed
Yang Tse [Mon, 20 Oct 2008 23:24:35 +0000 (23:24 +0000)]
remove debug-code which zero-filled some structures before free()ing them
Dan Fandrich [Mon, 20 Oct 2008 23:07:48 +0000 (23:07 +0000)]
A few prototypes shouldn't be defined if SSL is disabled.
Yang Tse [Mon, 20 Oct 2008 23:05:52 +0000 (23:05 +0000)]
*** empty log message ***
Daniel Stenberg [Mon, 20 Oct 2008 21:59:36 +0000 (21:59 +0000)]
All the coverity.com issues have no been taken care of.
Daniel Stenberg [Mon, 20 Oct 2008 21:56:35 +0000 (21:56 +0000)]
added a NULL pointer check for the name field as it can in fact be NULL when
dereferenced here, if the app passes in a funny combo. Detected by coverity.com
Yang Tse [Mon, 20 Oct 2008 15:56:08 +0000 (15:56 +0000)]
some more temporary magic for the icc seg-fault issue
Yang Tse [Sun, 19 Oct 2008 23:50:18 +0000 (23:50 +0000)]
messages initially intended only for debug purposes, now become permanent
since these are extremely useful when compiler rejects a set of options.
Yang Tse [Sun, 19 Oct 2008 22:46:54 +0000 (22:46 +0000)]
fix compiler warning
Daniel Stenberg [Sun, 19 Oct 2008 21:00:40 +0000 (21:00 +0000)]
Fixed potential memory leak in OOM situations. Detected by coverity.com
Yang Tse [Sun, 19 Oct 2008 20:41:03 +0000 (20:41 +0000)]
oops
Daniel Stenberg [Sun, 19 Oct 2008 20:37:24 +0000 (20:37 +0000)]
dumpeasycode() uses warnf() which uses config->errors so we must not close
that before dumpeasycode() is called. Found by coverity.com
Daniel Stenberg [Sun, 19 Oct 2008 20:28:41 +0000 (20:28 +0000)]
Removed dead code, identified by coverity.com.
Yang Tse [Sun, 19 Oct 2008 20:17:16 +0000 (20:17 +0000)]
attempt to fix or allow further detection of an elusive icc SIGSEGV
Daniel Stenberg [Sun, 19 Oct 2008 18:20:47 +0000 (18:20 +0000)]
clarified an argument's situation due to a false positive alert pointed out
by coverity.com
Dan Fandrich [Sun, 19 Oct 2008 04:48:15 +0000 (04:48 +0000)]
Fixed a compiler warning in the CURL_DISABLE_HTTP case
Yang Tse [Sun, 19 Oct 2008 01:02:18 +0000 (01:02 +0000)]
attempt to fix compiler warning relative to potential misaligned data access
Dan Fandrich [Sat, 18 Oct 2008 01:23:14 +0000 (01:23 +0000)]
Removed some more code in the CURL_DISABLE_HTTP case
Dan Fandrich [Sat, 18 Oct 2008 01:17:27 +0000 (01:17 +0000)]
Removed a line of dead code (discovered by Coverity)
Dan Fandrich [Fri, 17 Oct 2008 22:33:08 +0000 (22:33 +0000)]
Forgot it's a struct
Dan Fandrich [Fri, 17 Oct 2008 22:23:48 +0000 (22:23 +0000)]
Fixed a compile error reported by Albert Chin on AIX and IRIX when using
GTLS.
Yang Tse [Fri, 17 Oct 2008 19:04:53 +0000 (19:04 +0000)]
fix compiler warning
Yang Tse [Fri, 17 Oct 2008 17:11:11 +0000 (17:11 +0000)]
fix missing double-quotes
Yang Tse [Fri, 17 Oct 2008 15:29:35 +0000 (15:29 +0000)]
protect against 'use after free' or race condition
Yang Tse [Fri, 17 Oct 2008 13:55:13 +0000 (13:55 +0000)]
oops ;-)
Yang Tse [Fri, 17 Oct 2008 13:33:13 +0000 (13:33 +0000)]
oops
Daniel Stenberg [Fri, 17 Oct 2008 13:23:21 +0000 (13:23 +0000)]
fix syntax error
Patrick Monnerat [Fri, 17 Oct 2008 13:17:41 +0000 (13:17 +0000)]
Introduce new options CURLOPT_PROXY{USERNAME, PASSWORD} in OS400 code and RPG binding.
Yang Tse [Fri, 17 Oct 2008 12:53:53 +0000 (12:53 +0000)]
fix compiler warning
Yang Tse [Fri, 17 Oct 2008 12:49:02 +0000 (12:49 +0000)]
OOM condition fix
Daniel Stenberg [Fri, 17 Oct 2008 11:26:36 +0000 (11:26 +0000)]
Charles Hardin made adig support a regular numerical dotted IP address for the
-s option as well.
Daniel Stenberg [Fri, 17 Oct 2008 08:14:47 +0000 (08:14 +0000)]
185 - CURLOPT_PROXYUSER etc
done!
Daniel Stenberg [Fri, 17 Oct 2008 06:03:37 +0000 (06:03 +0000)]
After having studied one of the coverity.com reports at length last night, I
decided it was a good idea to properly document my thoughts in a comment near
the code that was identified as a possible flaw. A false positive as far as I
can see.
Yang Tse [Fri, 17 Oct 2008 03:59:02 +0000 (03:59 +0000)]
remove some spurious line-endings
Yang Tse [Fri, 17 Oct 2008 03:38:36 +0000 (03:38 +0000)]
portability fix to avoid memory alignment problems
Dan Fandrich [Thu, 16 Oct 2008 22:56:40 +0000 (22:56 +0000)]
Return an error when a proxy option is set when configured with
--disable-proxy mode.
Removed some unnecessary prototypes.
Dan Fandrich [Thu, 16 Oct 2008 21:34:34 +0000 (21:34 +0000)]
Added missing HTTP proxy and other keywords
Dan Fandrich [Thu, 16 Oct 2008 21:02:38 +0000 (21:02 +0000)]
CURLOPT_POST301 => CURLOPT_POSTREDIR
Daniel Stenberg [Thu, 16 Oct 2008 20:43:02 +0000 (20:43 +0000)]
don't segfault when NULL is passed in to CURLOPT_USERPWD or
CURLOPT_PROXYUSERPWD
Daniel Stenberg [Thu, 16 Oct 2008 20:21:22 +0000 (20:21 +0000)]
- Igor Novoseltsev added CURLOPT_PROXYUSER and CURLOPT_PROXYPASSWORD that then
make CURLOPT_PROXYUSERPWD sort of deprecated. The primary motive for adding
these new options is that they have no problems with the colon separator
that the CURLOPT_PROXYUSERPWD option does.
Daniel Stenberg [Thu, 16 Oct 2008 18:02:46 +0000 (18:02 +0000)]
compile the library file strequal.c to get the Curl_raw_equal function as
that's not exported by the lib
Daniel Stenberg [Thu, 16 Oct 2008 12:35:47 +0000 (12:35 +0000)]
mention the openssl requirement for the certinfo data
Daniel Stenberg [Thu, 16 Oct 2008 12:29:32 +0000 (12:29 +0000)]
correct version number for the certinfo addition
Daniel Stenberg [Thu, 16 Oct 2008 11:35:19 +0000 (11:35 +0000)]
Added CURLINFO_CERTINFO
Daniel Stenberg [Thu, 16 Oct 2008 11:04:53 +0000 (11:04 +0000)]
I renamed the function
Daniel Stenberg [Thu, 16 Oct 2008 08:23:48 +0000 (08:23 +0000)]
Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper function
used in strequal.c so now all test cases run fine for me again.
Daniel Stenberg [Thu, 16 Oct 2008 07:59:00 +0000 (07:59 +0000)]
Curl_ascii_equal() must not assume that the string is actually ASCII (so that a-z
are consecutive and with a 0x20 "distance" to the uppercase letter), since we do
support EBCDIC as well. Thus I replaced the macro with a (larger) switch case.
I better change the function name...
Yang Tse [Thu, 16 Oct 2008 01:45:07 +0000 (01:45 +0000)]
some more temporary magic for the icc seg-fault issue
Daniel Stenberg [Wed, 15 Oct 2008 21:44:49 +0000 (21:44 +0000)]
fix warning
Daniel Stenberg [Wed, 15 Oct 2008 21:43:48 +0000 (21:43 +0000)]
- Pascal Terjan filed bug #2154627
(http://curl.haxx.se/bug/view.cgi?id=2154627) which pointed out that libcurl
uses strcasecmp() in multiple places where it causes failures when the
Turkish locale is used. This is because 'i' and 'I' isn't the same letter so
strcasecmp() on those letters are different in Turkish than in English (or
just about all other languages). I thus introduced a totally new internal
function in libcurl (called Curl_ascii_equal) for doing case insentive
comparisons for english-(ascii?) style strings that thus will make "file"
and "FILE" match even if the Turkish locale is selected.
Yang Tse [Wed, 15 Oct 2008 18:10:02 +0000 (18:10 +0000)]
Ensure that shell variable contents which have active meaning
to the shell echo command are not interpreted when trying to
remove extra whitespace from shell variable content.
Dan Fandrich [Wed, 15 Oct 2008 17:41:02 +0000 (17:41 +0000)]
A <precheck> command is considered to have failed if it returns a non-zero
return code. This way, if the precheck command can't be run at all for
whatever reason, it's treated as a precheck failure which causes the
test to be skipped.
Daniel Stenberg [Wed, 15 Oct 2008 11:31:39 +0000 (11:31 +0000)]
removed the proto as well since the function is now gone
Daniel Stenberg [Wed, 15 Oct 2008 09:56:34 +0000 (09:56 +0000)]
remove Curl_strcasestr() since there is no code at all using this function!
Daniel Stenberg [Wed, 15 Oct 2008 07:45:51 +0000 (07:45 +0000)]
mention his full name
Daniel Stenberg [Wed, 15 Oct 2008 07:43:48 +0000 (07:43 +0000)]
- John Wilkinson filed bug #2155496
(http://curl.haxx.se/bug/view.cgi?id=2155496) pointing out an error case
without a proper human-readable error message. When a read callback returns
a too large value (like when trying to return a negative number) it would
trigger and the generic error message then makes the proplem slightly
different to track down. I've added an error message for this now.
Daniel Stenberg [Wed, 15 Oct 2008 07:31:31 +0000 (07:31 +0000)]
credit to John Wilkinson
Dan Fandrich [Tue, 14 Oct 2008 23:52:36 +0000 (23:52 +0000)]
Added signal-based resolver timeout issue
Yang Tse [Tue, 14 Oct 2008 23:06:39 +0000 (23:06 +0000)]
Adjust Watcom C warnings:
Disable warnings on structure members padding.
Dan Fandrich [Tue, 14 Oct 2008 22:04:01 +0000 (22:04 +0000)]
Failing SFTP range tests cases 634 through 637
Daniel Stenberg [Tue, 14 Oct 2008 21:20:04 +0000 (21:20 +0000)]
four additional pending issues
Yang Tse [Tue, 14 Oct 2008 18:44:27 +0000 (18:44 +0000)]
With this change Solaris target builds will now be done with _REENTRANT defined.
Yang Tse [Tue, 14 Oct 2008 17:35:25 +0000 (17:35 +0000)]
attempt to fix compiler warning:
`variable' might be clobbered by `longjmp' or `vfork'
Yang Tse [Tue, 14 Oct 2008 15:24:02 +0000 (15:24 +0000)]
Adjust Tiny C basic options:
Remove -b from debug-enabled configuration, as Tiny C might have
been built without the memory and bounds checker support.
Yang Tse [Tue, 14 Oct 2008 14:19:34 +0000 (14:19 +0000)]
Adjust GCC warnings:
Better disable following warnings when cross-compiling with a gcc older
than 3.0, to avoid warnings from third party system headers:
-Wmissing-declarations
-Wmissing-prototypes
-Wunused
-Wshadow
Daniel Stenberg [Tue, 14 Oct 2008 09:12:44 +0000 (09:12 +0000)]
eeek, append 1 on the right place as otherwise we didn't fix the problem
Yang Tse [Tue, 14 Oct 2008 04:59:22 +0000 (04:59 +0000)]
fix syntax error
Yang Tse [Tue, 14 Oct 2008 04:09:07 +0000 (04:09 +0000)]
Initial attempt to detect Watcom C compiler
Yang Tse [Tue, 14 Oct 2008 02:35:39 +0000 (02:35 +0000)]
fix compiler warning
Daniel Stenberg [Mon, 13 Oct 2008 22:21:01 +0000 (22:21 +0000)]
Prevent the accidental passing along NULL for the cases where the --trace
options don't succeed in opening the target file etc. Detected by coverity.com
Daniel Stenberg [Mon, 13 Oct 2008 21:39:12 +0000 (21:39 +0000)]
Prevent an off-by-one in a allocated buffer in glob_match_url() - detected by
coverity.com
Daniel Stenberg [Mon, 13 Oct 2008 21:03:12 +0000 (21:03 +0000)]
Removed superfluous check of clist->name, as in this code path that pointer
has already been dereferenced so it is bound to be valid. Pointed out to us
by coverity.com
Dan Fandrich [Mon, 13 Oct 2008 20:41:02 +0000 (20:41 +0000)]
Don't rely on shell support to run multiple precheck tests
Yang Tse [Mon, 13 Oct 2008 19:32:11 +0000 (19:32 +0000)]
make naming scheme more consistent across whole file
Yang Tse [Mon, 13 Oct 2008 17:06:06 +0000 (17:06 +0000)]
Adjust GCC warnings:
Disable following warnings when cross-compiling with a gcc older
than 3.0, to avoid warnings from third party system headers:
-Wmissing-prototypes
-Wunused
-Wshadow
Yang Tse [Mon, 13 Oct 2008 06:23:42 +0000 (06:23 +0000)]
attempt to fix or allow further detection of an elusive icc SIGSEGV
Yang Tse [Mon, 13 Oct 2008 06:16:02 +0000 (06:16 +0000)]
There's no guarantee that a socket was involved at this point, so avoid displaying any error code.
And on the other hand a message after setsockopt() certainly must use SOCKERRNO.
Yang Tse [Mon, 13 Oct 2008 00:43:30 +0000 (00:43 +0000)]
Adjust GCC --enable-warnings:
Do not enable -pedantic when cross-compiling with a gcc older
than 3.0, to avoid warnings from third party system headers.
Yang Tse [Sun, 12 Oct 2008 22:52:25 +0000 (22:52 +0000)]
adjust SGI MIPSpro C detection
Yang Tse [Sun, 12 Oct 2008 16:57:40 +0000 (16:57 +0000)]
LCC compiler adjustments:
Highest warning level is double -A, next is single -A.
Due to the big number of warnings these trigger on third
party header files it is impratical for us to use any of
them here. If you want them simply define it in CPPFLAGS.
Dan Fandrich [Sun, 12 Oct 2008 15:17:15 +0000 (15:17 +0000)]
Changed Curl_strlcat to strlcat, which is the one guaranteed to exist
Dan Fandrich [Sun, 12 Oct 2008 05:27:26 +0000 (05:27 +0000)]
Ensure the IPv6 stack is operational before running this test (other tests
use the startup of the IPv6 test server as a substitute check for this).
Yang Tse [Sat, 11 Oct 2008 18:04:39 +0000 (18:04 +0000)]
remove extra space
Yang Tse [Sat, 11 Oct 2008 16:59:44 +0000 (16:59 +0000)]
split SGI compiler check. One for MIPS C and another for MIPSpro C
Yang Tse [Sat, 11 Oct 2008 16:19:35 +0000 (16:19 +0000)]
LCC compiler adjustments:
Warning level reduced from double -A to single -A
Yang Tse [Sat, 11 Oct 2008 15:32:32 +0000 (15:32 +0000)]
fix compiler warning
Yang Tse [Sat, 11 Oct 2008 01:56:04 +0000 (01:56 +0000)]
fix compiler warning: explicit conversion of a 64-bit integral type to a smaller integral type
Dan Fandrich [Fri, 10 Oct 2008 19:10:44 +0000 (19:10 +0000)]
Fixed some compiler warnings with CURL_DISABLE_HTTP
Yang Tse [Fri, 10 Oct 2008 17:25:53 +0000 (17:25 +0000)]
attempt to fix or allow further detection of an elusive icc SIGSEGV
Patrick Monnerat [Fri, 10 Oct 2008 15:54:07 +0000 (15:54 +0000)]
_ Adapt OS400 EBCDIC wrappers to new options.
_ Update RPG binding accordingly.
_ Fix new options comments.
Yang Tse [Fri, 10 Oct 2008 10:31:16 +0000 (10:31 +0000)]
Initial attempt to detect Tiny C compiler
Yang Tse [Fri, 10 Oct 2008 10:06:25 +0000 (10:06 +0000)]
Initial attempt to detect LCC compiler
Yang Tse [Fri, 10 Oct 2008 09:14:18 +0000 (09:14 +0000)]
1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
2) Disable SGI remark: controlling expression is constant
Yang Tse [Fri, 10 Oct 2008 05:09:28 +0000 (05:09 +0000)]
simplify SGI C compiler check
Dan Fandrich [Fri, 10 Oct 2008 03:46:32 +0000 (03:46 +0000)]
Allow compilation when no IPv6 stack is available.
Yang Tse [Fri, 10 Oct 2008 03:01:50 +0000 (03:01 +0000)]
move struct namebuf6 declaration out of Curl_ip2addr6()