platform/upstream/curl.git
16 years agoChanged some arrays of char* to arrays of char[] to reduce data size and
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.

16 years agoCompile away some more code in the CURL_DISABLE_PROXY case.
Dan Fandrich [Tue, 21 Oct 2008 23:15:19 +0000 (23:15 +0000)]
Compile away some more code in the CURL_DISABLE_PROXY case.

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Tue, 21 Oct 2008 17:54:18 +0000 (17:54 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agoFixed some problems with SFTP range support to fix test cases 634 through 637.
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.

16 years agoCharles Hardin patch:
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

16 years agoremove debug-code which zero-filled some structures before free()ing them
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

16 years agoA few prototypes shouldn't be defined if SSL is disabled.
Dan Fandrich [Mon, 20 Oct 2008 23:07:48 +0000 (23:07 +0000)]
A few prototypes shouldn't be defined if SSL is disabled.

16 years ago*** empty log message ***
Yang Tse [Mon, 20 Oct 2008 23:05:52 +0000 (23:05 +0000)]
*** empty log message ***

16 years agoAll the coverity.com issues have no been taken care of.
Daniel Stenberg [Mon, 20 Oct 2008 21:59:36 +0000 (21:59 +0000)]
All the coverity.com issues have no been taken care of.

16 years agoadded a NULL pointer check for the name field as it can in fact be NULL when
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

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Mon, 20 Oct 2008 15:56:08 +0000 (15:56 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agomessages initially intended only for debug purposes, now become permanent
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.

16 years agofix compiler warning
Yang Tse [Sun, 19 Oct 2008 22:46:54 +0000 (22:46 +0000)]
fix compiler warning

16 years agoFixed potential memory leak in OOM situations. Detected by coverity.com
Daniel Stenberg [Sun, 19 Oct 2008 21:00:40 +0000 (21:00 +0000)]
Fixed potential memory leak in OOM situations. Detected by coverity.com

16 years agooops
Yang Tse [Sun, 19 Oct 2008 20:41:03 +0000 (20:41 +0000)]
oops

16 years agodumpeasycode() uses warnf() which uses config->errors so we must not close
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

16 years agoRemoved dead code, identified by coverity.com.
Daniel Stenberg [Sun, 19 Oct 2008 20:28:41 +0000 (20:28 +0000)]
Removed dead code, identified by coverity.com.

16 years agoattempt to fix or allow further detection of an elusive icc SIGSEGV
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

16 years agoclarified an argument's situation due to a false positive alert pointed out
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

16 years agoFixed a compiler warning in the CURL_DISABLE_HTTP case
Dan Fandrich [Sun, 19 Oct 2008 04:48:15 +0000 (04:48 +0000)]
Fixed a compiler warning in the CURL_DISABLE_HTTP case

16 years agoattempt to fix compiler warning relative to potential misaligned data access
Yang Tse [Sun, 19 Oct 2008 01:02:18 +0000 (01:02 +0000)]
attempt to fix compiler warning relative to potential misaligned data access

16 years agoRemoved some more code in the CURL_DISABLE_HTTP case
Dan Fandrich [Sat, 18 Oct 2008 01:23:14 +0000 (01:23 +0000)]
Removed some more code in the CURL_DISABLE_HTTP case

16 years agoRemoved a line of dead code (discovered by Coverity)
Dan Fandrich [Sat, 18 Oct 2008 01:17:27 +0000 (01:17 +0000)]
Removed a line of dead code (discovered by Coverity)

16 years agoForgot it's a struct
Dan Fandrich [Fri, 17 Oct 2008 22:33:08 +0000 (22:33 +0000)]
Forgot it's a struct

16 years agoFixed a compile error reported by Albert Chin on AIX and IRIX when using
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.

16 years agofix compiler warning
Yang Tse [Fri, 17 Oct 2008 19:04:53 +0000 (19:04 +0000)]
fix compiler warning

16 years agofix missing double-quotes
Yang Tse [Fri, 17 Oct 2008 17:11:11 +0000 (17:11 +0000)]
fix missing double-quotes

16 years agoprotect against 'use after free' or race condition
Yang Tse [Fri, 17 Oct 2008 15:29:35 +0000 (15:29 +0000)]
protect against 'use after free' or race condition

16 years agooops ;-)
Yang Tse [Fri, 17 Oct 2008 13:55:13 +0000 (13:55 +0000)]
oops ;-)

16 years agooops
Yang Tse [Fri, 17 Oct 2008 13:33:13 +0000 (13:33 +0000)]
oops

16 years agofix syntax error
Daniel Stenberg [Fri, 17 Oct 2008 13:23:21 +0000 (13:23 +0000)]
fix syntax error

16 years agoIntroduce new options CURLOPT_PROXY{USERNAME, PASSWORD} in OS400 code and RPG binding.
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.

16 years agofix compiler warning
Yang Tse [Fri, 17 Oct 2008 12:53:53 +0000 (12:53 +0000)]
fix compiler warning

16 years agoOOM condition fix
Yang Tse [Fri, 17 Oct 2008 12:49:02 +0000 (12:49 +0000)]
OOM condition fix

16 years agoCharles Hardin made adig support a regular numerical dotted IP address for the
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.

16 years ago185 - CURLOPT_PROXYUSER etc
Daniel Stenberg [Fri, 17 Oct 2008 08:14:47 +0000 (08:14 +0000)]
185 - CURLOPT_PROXYUSER etc
done!

16 years agoAfter having studied one of the coverity.com reports at length last night, I
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.

16 years agoremove some spurious line-endings
Yang Tse [Fri, 17 Oct 2008 03:59:02 +0000 (03:59 +0000)]
remove some spurious line-endings

16 years agoportability fix to avoid memory alignment problems
Yang Tse [Fri, 17 Oct 2008 03:38:36 +0000 (03:38 +0000)]
portability fix to avoid memory alignment problems

16 years agoReturn an error when a proxy option is set when configured with
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.

16 years agoAdded missing HTTP proxy and other keywords
Dan Fandrich [Thu, 16 Oct 2008 21:34:34 +0000 (21:34 +0000)]
Added missing HTTP proxy and other keywords

16 years agoCURLOPT_POST301 => CURLOPT_POSTREDIR
Dan Fandrich [Thu, 16 Oct 2008 21:02:38 +0000 (21:02 +0000)]
CURLOPT_POST301 => CURLOPT_POSTREDIR

16 years agodon't segfault when NULL is passed in to CURLOPT_USERPWD or
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

16 years ago- Igor Novoseltsev added CURLOPT_PROXYUSER and CURLOPT_PROXYPASSWORD that then
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.

16 years agocompile the library file strequal.c to get the Curl_raw_equal function as
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

16 years agomention the openssl requirement for the certinfo data
Daniel Stenberg [Thu, 16 Oct 2008 12:35:47 +0000 (12:35 +0000)]
mention the openssl requirement for the certinfo data

16 years agocorrect version number for the certinfo addition
Daniel Stenberg [Thu, 16 Oct 2008 12:29:32 +0000 (12:29 +0000)]
correct version number for the certinfo addition

16 years agoAdded CURLINFO_CERTINFO
Daniel Stenberg [Thu, 16 Oct 2008 11:35:19 +0000 (11:35 +0000)]
Added CURLINFO_CERTINFO

16 years agoI renamed the function
Daniel Stenberg [Thu, 16 Oct 2008 11:04:53 +0000 (11:04 +0000)]
I renamed the function

16 years agoRenamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper 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.

16 years agoCurl_ascii_equal() must not assume that the string is actually ASCII (so that a-z
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...

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Thu, 16 Oct 2008 01:45:07 +0000 (01:45 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agofix warning
Daniel Stenberg [Wed, 15 Oct 2008 21:44:49 +0000 (21:44 +0000)]
fix warning

16 years ago- Pascal Terjan filed bug #2154627
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.

16 years agoEnsure that shell variable contents which have active meaning
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.

16 years agoA <precheck> command is considered to have failed if it returns a non-zero
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.

16 years agoremoved the proto as well since the function is now gone
Daniel Stenberg [Wed, 15 Oct 2008 11:31:39 +0000 (11:31 +0000)]
removed the proto as well since the function is now gone

16 years agoremove Curl_strcasestr() since there is no code at all using this function!
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!

16 years agomention his full name
Daniel Stenberg [Wed, 15 Oct 2008 07:45:51 +0000 (07:45 +0000)]
mention his full name

16 years ago- John Wilkinson filed bug #2155496
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.

16 years agocredit to John Wilkinson
Daniel Stenberg [Wed, 15 Oct 2008 07:31:31 +0000 (07:31 +0000)]
credit to John Wilkinson

16 years agoAdded signal-based resolver timeout issue
Dan Fandrich [Tue, 14 Oct 2008 23:52:36 +0000 (23:52 +0000)]
Added signal-based resolver timeout issue

16 years agoAdjust Watcom C warnings:
Yang Tse [Tue, 14 Oct 2008 23:06:39 +0000 (23:06 +0000)]
Adjust Watcom C warnings:

  Disable warnings on structure members padding.

16 years agoFailing SFTP range tests cases 634 through 637
Dan Fandrich [Tue, 14 Oct 2008 22:04:01 +0000 (22:04 +0000)]
Failing SFTP range tests cases 634 through 637

16 years agofour additional pending issues
Daniel Stenberg [Tue, 14 Oct 2008 21:20:04 +0000 (21:20 +0000)]
four additional pending issues

16 years agoWith this change Solaris target builds will now be done with _REENTRANT defined.
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.

16 years agoattempt to fix compiler warning:
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'

16 years agoAdjust Tiny C basic options:
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.

16 years agoAdjust GCC warnings:
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

16 years agoeeek, append 1 on the right place as otherwise we didn't fix the problem
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

16 years agofix syntax error
Yang Tse [Tue, 14 Oct 2008 04:59:22 +0000 (04:59 +0000)]
fix syntax error

16 years agoInitial attempt to detect Watcom C compiler
Yang Tse [Tue, 14 Oct 2008 04:09:07 +0000 (04:09 +0000)]
Initial attempt to detect Watcom C compiler

16 years agofix compiler warning
Yang Tse [Tue, 14 Oct 2008 02:35:39 +0000 (02:35 +0000)]
fix compiler warning

16 years agoPrevent the accidental passing along NULL for the cases where the --trace
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

16 years agoPrevent an off-by-one in a allocated buffer in glob_match_url() - detected by
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

16 years agoRemoved superfluous check of clist->name, as in this code path that pointer
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

16 years agoDon't rely on shell support to run multiple precheck tests
Dan Fandrich [Mon, 13 Oct 2008 20:41:02 +0000 (20:41 +0000)]
Don't rely on shell support to run multiple precheck tests

16 years agomake naming scheme more consistent across whole file
Yang Tse [Mon, 13 Oct 2008 19:32:11 +0000 (19:32 +0000)]
make naming scheme more consistent across whole file

16 years agoAdjust GCC warnings:
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

16 years agoattempt to fix or allow further detection of an elusive icc SIGSEGV
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

16 years agoThere's no guarantee that a socket was involved at this point, so avoid displaying...
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.

16 years agoAdjust GCC --enable-warnings:
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.

16 years agoadjust SGI MIPSpro C detection
Yang Tse [Sun, 12 Oct 2008 22:52:25 +0000 (22:52 +0000)]
adjust SGI MIPSpro C detection

16 years agoLCC compiler adjustments:
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.

16 years agoChanged Curl_strlcat to strlcat, which is the one guaranteed to exist
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

16 years agoEnsure the IPv6 stack is operational before running this test (other tests
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).

16 years agoremove extra space
Yang Tse [Sat, 11 Oct 2008 18:04:39 +0000 (18:04 +0000)]
remove extra space

16 years agosplit SGI compiler check. One for MIPS C and another for MIPSpro C
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

16 years agoLCC compiler adjustments:
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

16 years agofix compiler warning
Yang Tse [Sat, 11 Oct 2008 15:32:32 +0000 (15:32 +0000)]
fix compiler warning

16 years agofix compiler warning: explicit conversion of a 64-bit integral type to a smaller...
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

16 years agoFixed some compiler warnings with CURL_DISABLE_HTTP
Dan Fandrich [Fri, 10 Oct 2008 19:10:44 +0000 (19:10 +0000)]
Fixed some compiler warnings with CURL_DISABLE_HTTP

16 years agoattempt to fix or allow further detection of an elusive icc SIGSEGV
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

16 years ago_ Adapt OS400 EBCDIC wrappers to new options.
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.

16 years agoInitial attempt to detect Tiny C compiler
Yang Tse [Fri, 10 Oct 2008 10:31:16 +0000 (10:31 +0000)]
Initial attempt to detect Tiny C compiler

16 years agoInitial attempt to detect LCC compiler
Yang Tse [Fri, 10 Oct 2008 10:06:25 +0000 (10:06 +0000)]
Initial attempt to detect LCC compiler

16 years ago1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
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

16 years agosimplify SGI C compiler check
Yang Tse [Fri, 10 Oct 2008 05:09:28 +0000 (05:09 +0000)]
simplify SGI C compiler check

16 years agoAllow compilation when no IPv6 stack is available.
Dan Fandrich [Fri, 10 Oct 2008 03:46:32 +0000 (03:46 +0000)]
Allow compilation when no IPv6 stack is available.

16 years agomove struct namebuf6 declaration out of Curl_ip2addr6()
Yang Tse [Fri, 10 Oct 2008 03:01:50 +0000 (03:01 +0000)]
move struct namebuf6 declaration out of Curl_ip2addr6()