Daniel Stenberg
bd6636c138
init_by_resolv_conf: fix compiler warnings
...
The code received the return codes in the 'status' variable without
using it. Instead we just ignore those particular errors.
14 years ago
Daniel Stenberg
39d7f64361
getv4: Value stored to 'dst' is never read
14 years ago
Daniel Stenberg
366cd6d54d
advance_tcp_send_queue: avoid NULL ptr dereference
...
If given a too large 'num_bytes' value, it would cause a NULL ptr
dereference. Instead the code will now break out of the loop at the end
of the list.
14 years ago
Peter Pentchev
766a5aaf86
configure: fix a bashism
14 years ago
Daniel Stenberg
2d5ed6400b
cleanup: avoid unsafe typecasts
...
Avoid the risk of reading 16bit data from an unaligned address by using
a macro that is adapted for this.
14 years ago
Stefan Bühler
70b726c334
ares_expand_name: Fix encoded length for indirect root
14 years ago
Yang Tse
a44f4c33e9
build: add some explicit file references to VS project files
14 years ago
Yang Tse
1cfd800d4a
config-win32: provide HAVE_ASSERT_H definition
14 years ago
Yang Tse
7a4ec5ce61
build: include ares_nowarn in sample program VS project files
14 years ago
Yang Tse
e566cc100f
build: include ares_nowarn among SAMPLESOURCES and SAMPLEHEADERS
14 years ago
Yang Tse
674e044ccb
configure: temporarily disable detection of system's inet_ntop()
...
This is done to allow compilation of ares_inet_ntop() by some daily
builds picky compilers that otherwise do not need this function.
14 years ago
Yang Tse
d8c830f33e
changes: mention last fix
14 years ago
Yang Tse
3670427a0b
ares_inet_ntop: remove definition and usage of macro SPRINTF
...
Existing definition of SPRINTF always resulted in sprintf() being used,
and sprintf() returning 'int' is already used throughout the library.
14 years ago
Yang Tse
52f493c931
ares_inet_ntop: reapply changes from previous c-ares version (III)
...
- Replace 'u_char' with 'unsigned char'.
- Replace 'u_int' with 'unsigned int'.
- use macros ERRNO and SET_ERRNO() for errno handling.
14 years ago
Yang Tse
2c9bdd7856
ares_inet_ntop: reapply changes from previous c-ares version (II)
...
- Remove rcsid.
- Adjust header file inclusions.
- ares_inet_ntop used only on systems without a proper inet_ntop function.
14 years ago
Yang Tse
fd6f4dbe1e
ares_inet_ntop: reapply changes from previous c-ares version (I)
...
- Replace tabs with spaces.
- Use ANSI C style for function declarations and definitions.
- Use sizeof with parentheses.
14 years ago
Yang Tse
0d738bab0d
ares_inet_ntop: fix off by one error triggering out of bounds write
...
ares_inet_ntop would trigger an out of bounds write when the representation
of the address required 15 characters, due to not taking in account null
termination character.
Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
14 years ago
Yang Tse
b9959cbf36
ares_nowarn: add conditional inclusion of assert.h header
14 years ago
Yang Tse
f5e0858d2f
fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
e03a65c3d9
ares_inet_net_pton: fix non-rejection of some malformed literals
...
ares_inet_net_pton would return wrong values when excessively large,
and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
issue also described in the WLB-2008080064 advisory.
14 years ago
Yang Tse
2c26d7d254
setup_once: provide ISASCII macro
14 years ago
Yang Tse
623f3cb531
configure: inet_net_pton function check adjustments
...
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.
HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
14 years ago
Yang Tse
b2dafb6974
ares_init: fix detection of semicolon comments in resolv.conf
...
File resolv.conf may either use a hash '#' or a semicolon ';' character as an
indication that the rest of the line is a comment. This fixes not recognizing
the semicolon as a valid comment indicator in resolv.conf.
14 years ago
Yang Tse
0b497f70e1
version: start working on 1.7.5
14 years ago
Daniel Stenberg
b354607aed
release-preps: CHANGES and RELEASE-NOTES synced
14 years ago
Daniel Stenberg
0ae8dbb22d
ares_set_local_*: added in 1.7.4, not before
14 years ago
Yang Tse
4d061e6b23
build: provide SIZEOF_SIZE_T definition for non-configure builds
14 years ago
Yang Tse
09331032a0
build: config.dos renamed to config-dos.h
14 years ago
Yang Tse
a04dbb4323
build: provide SIZEOF_SIZE_T netware definition
14 years ago
Yang Tse
fb4df6febc
ares_gethostbyaddr: fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
618e34bcf6
configure: undo using autobuilds to temporarily verify strict aliasing warnings.
14 years ago
Yang Tse
a1c27d5480
fix compiler warning: rounding, sign extension, or loss of accuracy may result
14 years ago
Ben Noordhuis
2c63440127
ares_parse_a_reply: fix CNAME response parsing
...
Reply to a CNAME query doesn't contain addresses, causing
ares_parse_a_reply() to bail out with ARES_ENODATA
Bug: http://groups.google.com/group/nodejs/browse_thread/thread/a1268c9ea5e9ad9b
14 years ago
Yang Tse
41b8a1bfd0
fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
e3f7230dc2
atoi: remove atoi usage
14 years ago
Yang Tse
0ea27cdbbf
ares_init: fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
e3813e6d24
configure: fix autoconf warning
14 years ago
Yang Tse
e9e8b6e864
inet_pton: fix compiler warning
14 years ago
Yang Tse
4d44b54c75
configure: use autobuilds to temporarily verify strict aliasing warnings.
...
Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
rules and warnings. Given that cross-compiled targets autobuilds do not run the
test-suite, there is no risk of running code that violates strict aliasing rules
14 years ago
Yang Tse
461fa89e0a
ares_getnameinfo: Partially revert commit 85520d66e0
...
Upon socket address family and length validation failure return ARES_ENOTIMP
in callback again, this is the error code documented in man page and used
mostly all over the library.
14 years ago
Yang Tse
85520d66e0
ares_getnameinfo: Validate socket address family and length.
...
Validate socket address family and that the socket address length is appropriate
for the specified family. Failure is reported with ARES_EBADFAMILY in callback.
14 years ago
Yang Tse
690f9a726c
ares_getnameinfo: fix two compiler warnings
14 years ago
Yang Tse
137a440a36
Added another VS10 version string
14 years ago
Yang Tse
10ae9e4ec2
Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
14 years ago
Yang Tse
4ab5eb6631
Revert commit 494274e653
14 years ago
Yang Tse
0b504d7065
configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body
14 years ago
Yang Tse
dac69d52c2
Fix compiler warning: array subscript has type 'char'
14 years ago
Yang Tse
494274e653
Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
14 years ago
Yang Tse
747981be8e
Revert following commits:
...
07bc7ea795
3392a50ea3
9912637d32
The purpose of the whole patch was to silence a compiler warning triggered
with GCC 4 on file ares_process.c The specific compiler warning was
'dereferencing type-punned pointer might break strict-aliasing rules'.
A simpler patch will follow to equally silence the warning.
14 years ago
Yang Tse
b8044334f0
ares_options: reorder header inclusions to make inclusion of
...
ares_private.h the last included one again.
14 years ago