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()
Yang Tse [Fri, 10 Oct 2008 02:32:46 +0000 (02:32 +0000)]
HP C adjustments:
Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level.
It generates more than 1100 warnings on socklen_t related statements.
Until the issue is somehow fixed we will just use the +w2 warning level.
Yang Tse [Fri, 10 Oct 2008 02:14:46 +0000 (02:14 +0000)]
fix compiler warning
Yang Tse [Fri, 10 Oct 2008 00:07:41 +0000 (00:07 +0000)]
Add debug tracing for COMPILER_WORKS_IFELSE
Dan Fandrich [Thu, 9 Oct 2008 22:14:38 +0000 (22:14 +0000)]
Get rid of some more code in the CURL_DISABLE_HTTP case
Daniel Stenberg [Thu, 9 Oct 2008 21:57:51 +0000 (21:57 +0000)]
I replaced the use of 'struct tm' with a private clone of that struct simply
because the struct is declared on the stack and not all members are used so
we could just as well make struct with only struct members we actually need.
Dan Fandrich [Thu, 9 Oct 2008 20:03:04 +0000 (20:03 +0000)]
Fixed a leftover reference to CURLOPT_FTP_SSL (thanks to Carlos Alloatti
for spotting it).
Yang Tse [Thu, 9 Oct 2008 19:55:18 +0000 (19:55 +0000)]
configure will also warn on 'strict compiler warning' rejected options
Dan Fandrich [Thu, 9 Oct 2008 19:23:50 +0000 (19:23 +0000)]
Fixed the --interface option to work with IPv6 connections on glibc
systems supporting getifaddrs(). Also fixed a problem where an IPv6
address could be chosen instead of an IPv4 one for --interface when it
involved a name lookup.
Dan Fandrich [Thu, 9 Oct 2008 18:53:17 +0000 (18:53 +0000)]
Added HTTP as a required feature
Dan Fandrich [Thu, 9 Oct 2008 18:47:02 +0000 (18:47 +0000)]
Update docs now that SFTP supports file ranges.
Yang Tse [Thu, 9 Oct 2008 15:06:20 +0000 (15:06 +0000)]
convert rejected compiler options messages into a warnings
Yang Tse [Thu, 9 Oct 2008 13:11:10 +0000 (13:11 +0000)]
remove extra whitespace from string in SGI C check
Dan Fandrich [Thu, 9 Oct 2008 05:16:06 +0000 (05:16 +0000)]
Added tests 633 through 637 to test the new file range support for SFTP.
All but the first test cause an infinite loop or other failure and so
are added to DISABLED.
Yang Tse [Thu, 9 Oct 2008 03:05:48 +0000 (03:05 +0000)]
oops
Yang Tse [Thu, 9 Oct 2008 03:02:25 +0000 (03:02 +0000)]
Initial attempt to detect SGI C compiler
Yang Tse [Thu, 9 Oct 2008 00:50:50 +0000 (00:50 +0000)]
HP C adjustments:
Disallow run-time dereferencing of null pointers.
Disable some remarks:
#4227: padding struct with n bytes to align member.
#4255: padding size of struct with n bytes to alignment boundary.
Yang Tse [Thu, 9 Oct 2008 00:07:56 +0000 (00:07 +0000)]
fix compiler warning: zero used for undefined preprocessing identifier
Daniel Stenberg [Wed, 8 Oct 2008 22:01:23 +0000 (22:01 +0000)]
- Bug #2152270 (curl.haxx.se/bug/view.cgi?id=2152270) identified and
fixed a CURLINFO_REDIRECT_URL memory leak and an additional wrong-doing:
Any subsequent transfer with a redirect leaks memory, eventually crashing
the process potentially.
Any subsequent transfer WITHOUT a redirect causes the most recent redirect
that DID occur on some previous transfer to still be reported.
Dan Fandrich [Wed, 8 Oct 2008 21:46:55 +0000 (21:46 +0000)]
Added tests 1082 through 1085 to test symbolic --interface parameters
Daniel Stenberg [Wed, 8 Oct 2008 21:42:29 +0000 (21:42 +0000)]
- Igor filed bug #2111613 (curl.haxx.se/bug/view.cgi?id=2111613) that
eventually identified a flaw in how the multi_socket interface in some cases
missed to call the timeout callback when easy interfaces are removed and
added within the same millisecond.
Dan Fandrich [Wed, 8 Oct 2008 20:14:46 +0000 (20:14 +0000)]
Fixed a memory leak in the new CURLOPT_USERPWD handling
Yang Tse [Wed, 8 Oct 2008 19:38:01 +0000 (19:38 +0000)]
improve presentation of accepted/rejected debug/optimizer options
Yang Tse [Wed, 8 Oct 2008 18:32:06 +0000 (18:32 +0000)]
fix missing null-pointer check
Yang Tse [Wed, 8 Oct 2008 16:12:10 +0000 (16:12 +0000)]
refactoring of COMPILER_BASIC_OPTS
Daniel Stenberg [Wed, 8 Oct 2008 10:40:51 +0000 (10:40 +0000)]
179 - "[PATCH] Colon in username"
was committed just now!
Daniel Stenberg [Wed, 8 Oct 2008 10:39:43 +0000 (10:39 +0000)]
- Igor Novoseltsev brought a patch that introduced two new options to
curl_easy_setopt: CURLOPT_USERNAME and CURLOPT_PASSWORD that sort of
deprecates the good old CURLOPT_USERPWD since they allow applications to set
the user name and password independently and perhaps more importantly allow
both to contain colon(s) which CURLOPT_USERPWD doesn't fully support.
Yang Tse [Wed, 8 Oct 2008 03:50:45 +0000 (03:50 +0000)]
Initial attempt to detect SUN C compiler
Dan Fandrich [Wed, 8 Oct 2008 03:32:10 +0000 (03:32 +0000)]
Created test cases 1080 and 1081 to reproduce a problem of
CURLINFO_REDIRECT_URL leaking memory and returning incorrect results when
two URLs are requested. Reported by vmpdemo in bug #2152270
Yang Tse [Wed, 8 Oct 2008 02:29:13 +0000 (02:29 +0000)]
Initial attempt to detect HP C compiler
Dan Fandrich [Wed, 8 Oct 2008 01:17:51 +0000 (01:17 +0000)]
Added const to some pointer variables
Dan Fandrich [Tue, 7 Oct 2008 23:20:06 +0000 (23:20 +0000)]
Split off Curl_isxdigit function
Dan Fandrich [Tue, 7 Oct 2008 23:15:02 +0000 (23:15 +0000)]
Changed the handling of read/write errors in Curl_perform() to allow a
a fresh connection to be made in such cases and the request retransmitted.
This should fix test case 160. Added test case 1079 in an attempt to
test a similar connection dropping scenario, but as a race condition, it's
hard to test reliably.
Daniel Stenberg [Tue, 7 Oct 2008 22:53:33 +0000 (22:53 +0000)]
mention the other sf.net bug which does have a sort of fix mentioned
Daniel Stenberg [Tue, 7 Oct 2008 22:49:11 +0000 (22:49 +0000)]
some additional classification of the entries
Daniel Stenberg [Tue, 7 Oct 2008 22:13:34 +0000 (22:13 +0000)]
One fix for CURLINFO_PRIMARY_IP just went in which addressed at least one of
the concerns mentioned for 174 and the other guy hasn't returned so I remove
the entry from here now.
Daniel Stenberg [Tue, 7 Oct 2008 21:56:56 +0000 (21:56 +0000)]
- Fixed CURLINFO_PRIMARY_IP: When libcurl created a connection to host A then
the app re-used the handle to do a connection to host B and then again
re-used the handle to host A, it would not update the info with host A's IP
address (due to the connection being re-used) but it would instead report
the info from host B.
Dan Fandrich [Tue, 7 Oct 2008 20:28:25 +0000 (20:28 +0000)]
Document how to disable tests when certain --disable-* flags are used.
Yang Tse [Tue, 7 Oct 2008 18:44:32 +0000 (18:44 +0000)]
fix compiler warning: 'dot_4' may be used uninitialized in this function
Yang Tse [Tue, 7 Oct 2008 18:28:24 +0000 (18:28 +0000)]
fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
Daniel Stenberg [Tue, 7 Oct 2008 18:14:11 +0000 (18:14 +0000)]
oops, counted one of them twice!
Daniel Stenberg [Tue, 7 Oct 2008 18:10:16 +0000 (18:10 +0000)]
two more bindings
Yang Tse [Tue, 7 Oct 2008 17:37:25 +0000 (17:37 +0000)]
adjust ICC_windows settings
Yang Tse [Tue, 7 Oct 2008 16:53:46 +0000 (16:53 +0000)]
fix VAR_STRIP
Yang Tse [Tue, 7 Oct 2008 13:34:59 +0000 (13:34 +0000)]
Sync up with reality
Yang Tse [Tue, 7 Oct 2008 13:13:34 +0000 (13:13 +0000)]
Initial attempt to support configure's --(dis|en)able-optimize
option to specify dis(activation) of compiler optimizations.
If option is specified, it will be honored independant of the
--(dis|en)able-debug option.
Yang Tse [Fri, 3 Oct 2008 03:42:44 +0000 (03:42 +0000)]
revert change introduced in tftpd.c revision 1.44
Yang Tse [Fri, 3 Oct 2008 02:25:52 +0000 (02:25 +0000)]
fix another error introduced in previously mentioned commit
Yang Tse [Fri, 3 Oct 2008 00:35:22 +0000 (00:35 +0000)]
fix error introduced in previous commit
Yang Tse [Thu, 2 Oct 2008 22:58:09 +0000 (22:58 +0000)]
take 2 at fixing compiler warning: argument might be clobbered by `longjmp' or `vfork'
Yang Tse [Thu, 2 Oct 2008 14:44:18 +0000 (14:44 +0000)]
fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
Yang Tse [Thu, 2 Oct 2008 14:42:57 +0000 (14:42 +0000)]
fix compiler warning: `variable' might be clobbered by `longjmp' or `vfork'
Yang Tse [Thu, 2 Oct 2008 13:28:10 +0000 (13:28 +0000)]
fix compiler warning: `variable' might be clobbered by `longjmp' or `vfork'
Yang Tse [Thu, 2 Oct 2008 04:27:42 +0000 (04:27 +0000)]
fix comment
Yang Tse [Thu, 2 Oct 2008 04:17:36 +0000 (04:17 +0000)]
debug option check must be before warnings option check
Yang Tse [Thu, 2 Oct 2008 03:59:25 +0000 (03:59 +0000)]
runtests.pl enables picky compiler warnings unless explicitly disabled
Yang Tse [Thu, 2 Oct 2008 03:56:55 +0000 (03:56 +0000)]
Initial attempt to support configure's --(dis|en)able-warnings
option to specify dis(activation) of picky compiler warnings.
If option is specified, it will be honored independant of the
--(dis|en)able-debug option.
If option is not specified, it will follow --(dis|en)able-debug
setting, whose default is disabled if not specified.
Dan Fandrich [Wed, 1 Oct 2008 18:29:13 +0000 (18:29 +0000)]
"make clean" now cleans out the docs and tests directories, too.