Yang Tse
54a7da89c8
Header inclusion depending on HAVE_* symbol.
...
Fix two typos.
15 years ago
Yang Tse
e576d895e7
Comparison of the Initial revision of this file with ares_parse_a_reply.c
...
shows that this one is actually a modified copy of ares_parse_a_reply.c.
In order to comply with ares_parse_a_reply.c's M.I.T. license, the old
1998 M.I.T. copyright notice is now also preserved in this file the same
as it is done in other ares_parse_*.c files.
15 years ago
Yang Tse
80d7a970f1
Add CVS Id tag.
...
Fix identation of some license lines.
15 years ago
Yang Tse
ad0b952b58
Add CVS Id tag.
15 years ago
Yang Tse
4533a082bd
Fix comment
15 years ago
Yang Tse
cef06973a2
In no particular order, changed/fixed all of the following in
...
ares_parse_txt_reply() current version:
- Fixed a couple of potential double free's.
- Fixed memory leaks upon out of memory condition.
- Fixed pointer arithmetic.
- Setting ntxtreply to zero upon entry for all failure cases.
- Changed data type to size_t for variables substr_len, str_len and
the length member of ares_txt_reply struct.
- Avoided a couple of memcpy() calls.
- Changed i data type to unsigned int to prevent compiler warnings.
- Adjusted a comment.
- Use ARES_SUCCESS literal for successfull completion.
- Added CVS Id tag.
15 years ago
Yang Tse
de48a86cf6
Add c-ares DLL resource file to distribution archive
15 years ago
Yang Tse
e5d9f1c7ba
ignore files
15 years ago
Yang Tse
671ccb2d1a
Empty subdir
15 years ago
Yang Tse
991dd45884
Updated MSVC 6.0 workspace and project files that allows building
...
dynamic and static c-ares libraries in debug and release flavours.
Additionally each of the three sample programs is built against
each of the four possible c-ares libraries, generating all this
a total number of 12 executables and 4 libraries.
15 years ago
Daniel Stenberg
df2dc91fd4
no need to check for NULL pointers before dereferencing, as the pointers
...
MUST be valid and they are dereferenced further down in the function
unconditionally!
15 years ago
Daniel Stenberg
2f84a75012
shorten the descriptions somewhat
15 years ago
Daniel Stenberg
d64a407d11
update to the new struct name
15 years ago
Daniel Stenberg
9cbd5ed034
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
15 years ago
Daniel Stenberg
9ff3cb7411
use 'ares_srv_reply' for proper name-spacing
15 years ago
Yang Tse
991c93cf54
Add reference for ares_parse_srv_reply.pdf
15 years ago
Yang Tse
539ffc7b40
Add reference for ares_parse_srv_reply docs
15 years ago
Yang Tse
4cb3aa4080
External API function linkage decoration adjustment
15 years ago
Yang Tse
de18bf7562
External API function linkage decoration adjustment
15 years ago
Yang Tse
9cac6a4625
Initial step towards the ability to reduce c-ares exported symbols
...
based on the 'visibility' attribute for GNUC and __global for Sun
compilers, taking also in account __declspec function decoration
for Win32 and Symbian DLL's.
Introducing configure options --enable-hidden-symbols and
--disable-hidden-symbols following libcurl's naming.
15 years ago
Yang Tse
a732ace461
Fix comment
15 years ago
Yang Tse
f28b736a56
Fix spelling
15 years ago
Yang Tse
76f24cfdbd
Fix Pelles C Win32 target compilation issues
15 years ago
Yang Tse
b53526b1a9
John Engelhart noticed an unreleased problem relative to a duplicate
...
ARES_ECANCELLED error code value and missing error code description.
15 years ago
Yang Tse
e199ec677f
Fix compiler warning: local variable may be used without having been initialized
15 years ago
Yang Tse
6c48e1ff36
Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
...
is only expanded and included once in the configure script.
15 years ago
Yang Tse
7472bed472
Our _AS_PATH_SEPARATOR_PREPARE override is now m4_defun'd instead of m4_define'd
...
due to autoconf 2.64 m4_require'ing it in _AS_SHELL_SANITIZE indirectly through
_AS_PATH_WALK.
15 years ago
Yang Tse
58346cbfb9
Fix compiler warning: argument is incompatible with corresponding format string conversion
15 years ago
Yang Tse
e804725e75
Fix potential out-of-bounds read
15 years ago
Yang Tse
ec11480d8b
Fix compiler warning: loop without body
15 years ago
Yang Tse
590e697792
Fix compiler warning
15 years ago
Yang Tse
f3346ca16b
Fix compiler warning
15 years ago
Yang Tse
e112f191a3
Fix compiler warning
15 years ago
Yang Tse
716d5817dc
Fix compiler warning: addition result could be truncated before cast to bigger sized type
15 years ago
Yang Tse
c2d3e82931
Overhauled ares__get_hostent()
...
- Fixing out of bounds memory overwrite triggered with malformed /etc/hosts file.
- Improving parsing of /etc/hosts file.
- Validating requested address family.
- Ensuring that failures always return a NULL pointer.
- Adjusting header inclusions.
15 years ago
Yang Tse
b7bb0a5722
Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak
15 years ago
Yang Tse
38209f6a77
more files to ignore
15 years ago
Yang Tse
bd4a8c159e
Check if _REENTRANT definition is required to
...
make errno available as a preprocessor macro.
15 years ago
Yang Tse
85442b2a4b
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
15 years ago
Yang Tse
ada932d94a
ignore more files
15 years ago
Gisle Vanem
a65d11ee13
Suppress warnings about unused prototypes in Watt32 and Win32 programs.
15 years ago
Gisle Vanem
4ff50cf6bd
Update email address.
15 years ago
Gisle Vanem
01c4c8ae3f
Update my email address. Add ares_config.h as dependency for 'make depend'.
15 years ago
Yang Tse
4cc09c0216
T_SRV portability check
15 years ago
Gunter Knauf
d2f5bde0db
changed includes to match style how we do with all other *.c files.
15 years ago
Gunter Knauf
091393e79c
changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used;
...
also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.
15 years ago
Gisle Vanem
6616621ffe
Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.
15 years ago
Gisle Vanem
f4d9eacfe4
Added 'ares_parse_srv_reply.obj'. Added definition of 'u_int16_t'. This is I don't like; we should not depend on such non-universal types in a public header. But this is just a quick fix.
15 years ago
Daniel Stenberg
a5b204dd5b
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
15 years ago
Steinar H. Gunderson
cef560e871
Support lookup of IPv4 literals in ares_gethostbyname(), even when the address family is set to AF_INET6.
15 years ago