8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-30 08:43:04 +01:00
Commit Graph

251 Commits

Author SHA1 Message Date
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
asfernandes
05b90fa684 Eliminate some warnings 2008-01-16 14:37:26 +00:00
dimitr
f25819fb19 The merge continued. 2008-01-16 07:55:28 +00:00
alexpeshkoff
3e0d8ebc5b Fixed CORE-1603: Possible buffer overflow with long user name 2007-11-19 16:18:59 +00:00
hvlad
2b47bbe55b Revert files back after wrong commit 2007-11-19 00:21:18 +00:00
hvlad
86f1141328 Execute statement with support of external data source 2007-11-18 22:59:20 +00:00
paulbeach
c823619e92 HPUX Port 2007-11-12 15:18:49 +00:00
robocop
a3dfe97258 Parameter blocks are UCHAR streams.
Make their length unsigned, too.
2007-10-29 03:23:56 +00:00
dimitr
204b2881e7 Fixed CORE-1460.
Make INET to use the same buffer as other transports instead of the hackery usage of p_resp_blob_id.
2007-09-14 06:00:17 +00:00
hvlad
1b06f7802a Fixed bug CORE-1397 : Possible vulnerability in remote server 2007-08-02 16:26:21 +00:00
alexpeshkoff
ea8ba3370d Cleaned up mutexes - removed MUTX_T and related macros 2007-06-06 12:37:24 +00:00
robocop
d90bf91fbd Misc. 2007-06-06 08:08:36 +00:00
hvlad
5dab01a578 Fixed CORE-1303 : Infinite loop in SS remote listener 2007-06-04 14:17:15 +00:00
hvlad
0eb638700f Fix for CORE-1276: Sometime INET error reported as 0 in firebird.log instead of real error code 2007-05-21 20:25:42 +00:00
robocop
f2f3d205ce Misc. 2007-04-20 09:47:14 +00:00
alexpeshkoff
24015c14cd fixed gcc warning 2007-04-19 09:12:32 +00:00
asfernandes
20299bb856 Misc 2007-03-24 17:44:09 +00:00
alexpeshkoff
5f19566f76 Patch by Damyan Ivanov - accept localhost connections without /etc/host.equiv 2007-03-22 13:13:38 +00:00
alexpeshkoff
2c93118e86 Misc diagnostics 2007-02-24 11:27:52 +00:00
dimitr
6466e7b12d 1) WNET and XNET cannot support OOB transmission, so they should not ask for that.
2) Cleanup the INET protocol types.
2006-12-15 15:47:52 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
dimitr
25bf9d6c11 Fixed CORE-1017. 2006-11-28 10:21:21 +00:00
asfernandes
efcadd67a1 Misc 2006-10-25 15:09:13 +00:00
paulbeach
d668ed78e6 Commit the right inet.cpp and fix for CORE-966 2006-10-25 09:54:32 +00:00
robocop
27a9f9d586 Undo Paul Beach's fix for CORE-966 in HEAD because the patch is malformed and contains outdated code. Maybe it was intended for v2.0. 2006-10-25 07:05:25 +00:00
paulbeach
dd89b18833 Fix for Core-966 2006-10-24 15:06:24 +00:00
dimitr
a09dc97d6b Corrections, thanks to Claudio. 2006-07-20 06:19:25 +00:00
asfernandes
ea0435247a Misc 2006-07-18 02:45:35 +00:00
dimitr
a9348e5766 Fixed CORE-833. 2006-07-17 11:10:18 +00:00
dimitr
2bc42d7dba Cleanup. 2006-06-02 08:26:08 +00:00
alexpeshkoff
b953f965b0 Fixed setsockopt() level - thanks to Fred 2006-06-02 07:16:39 +00:00
alexpeshkoff
d8560dd061 common code to set NODELAY option 2006-05-24 14:08:06 +00:00
hvlad
f94b8bd641 Merge B1_5_Remote_LazyPort branch into HEAD 2006-05-01 22:23:31 +00:00
robocop
d306dc5ef4 Since TCP_NO_DELAY is gone, comments regarding it are obsolete. 2006-04-29 03:01:40 +00:00
dimitr
ccc620e334 A bunch of changes targeted to support multi-instancing on win32. 2006-04-20 10:35:44 +00:00
robocop
67919047a2 Try to comply with MacOS docs... there's work to do in inet.cpp with FB_SETOPT_FLAGS. 2006-04-19 03:07:34 +00:00
alexpeshkoff
f12d282788 avoid too much #ifdef's inside the file 2006-04-18 09:43:37 +00:00
robocop
a89957c0ab Restore Win32 port to compilable state. 2006-04-18 04:48:32 +00:00
kkuznetsov
450fc1d863 Fix compile error on Solaris 2006-04-17 18:39:22 +00:00
alexpeshkoff
4eb30fcf39 Don't raise SIGPIPE when other side terminated connection 2006-04-17 15:52:56 +00:00
robocop
2e9353d7e7 Delete dead code after checking with Dmitry.
The B.O. are still there when copying the result of GetCommandLine().
2006-04-11 07:18:53 +00:00
robocop
4243e7bcc4 Style. 2006-04-09 06:46:28 +00:00
dimitr
442ff93a3b Nagle algorithm is now disabled by default, so there's no need to print an appropriate message in the server log. 2006-04-05 07:08:32 +00:00
dimitr
d123ead3a5 1) Set NoNagle depending on config only.
2) Set socket options for Win32 CS.
2006-04-05 05:04:52 +00:00
alexpeshkoff
1b6df6110a fixed server hang in case of broken client 2006-03-20 16:29:04 +00:00
robocop
179a4b7cfb Style. 2006-03-07 05:44:13 +00:00
alexpeshkoff
a6151c44c9 Fixed SF bug 1385092 2006-03-03 16:20:42 +00:00
robocop
10cb928ddc More cleanup. 2006-02-23 06:52:25 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
dimitr
7ca955e43a Minor cleanup. 2006-02-04 10:37:15 +00:00
hvlad
73dcebc962 Replace "../jrd/jrd_time.h" with "../common/classes/timestamp.h" 2006-02-03 13:13:27 +00:00
alexpeshkoff
4b40679a8d fixed posix build 2006-01-16 08:47:20 +00:00
robocop
b67b0219ab Change from getenv to readenv. This is still getenv in Linux/UNIX but GetEnvironmentVariable in Windows. 2006-01-14 04:48:59 +00:00
alexpeshkoff
688cfd53eb Misc 2005-12-23 08:52:31 +00:00
dimitr
e4f0ad0358 Fixed lost PORT_async flag for WNET + misc. 2005-11-30 12:37:00 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
dimitr
b570b3e3db Fixed cleanup of the broken port in classic. Let's always close the connection properly. 2005-11-24 14:03:26 +00:00
alexpeshkoff
db5c130d72 Make EACCES non-fatal when setting TCP_NODELAY 2005-04-29 17:03:46 +00:00
kkuznetsov
633ec5fd26 Fix my error which breaking non posix things 2005-04-06 13:02:13 +00:00
robocop
46e96a4f8e Style. 2005-04-05 06:47:17 +00:00
kkuznetsov
438005440f Allow setting TCP_NODELAY socket option in Classic Server
and make if default true on both arhitecture.
2005-04-04 12:54:34 +00:00
aafemt
8eeb34967b no more THD_* stuff in client 2005-03-10 10:23:52 +00:00
robocop
446088ab7b Fix recent commit by Frank. I cannot compile to verify. 2005-01-29 09:22:36 +00:00
fsg
dbee2f3c8c get it built again 2005-01-27 13:19:16 +00:00
dimitr
b37a6f707a Changes and cleanup regarding XNET vs old-style IPC. 2005-01-16 11:25:18 +00:00
aafemt
cf54708af3 Fix fearful warning 2005-01-13 07:31:17 +00:00
alexpeshkoff
80e0be646b 1. fixed AV during SS shutdown on NT
2. removed duplicated WSACleanup() call
2005-01-11 10:08:30 +00:00
alexpeshkoff
c5445c969b user_id clumplet cleanup 2004-12-26 13:48:01 +00:00
robocop
1718ae5a45 Misc. 2004-12-26 04:09:06 +00:00
robocop
4012106884 Misc. 2004-12-25 09:44:03 +00:00
robocop
342a5afcc6 Misc. 2004-12-17 06:22:37 +00:00
robocop
d2b91e9446 Minimize forced casts. 2004-12-17 05:56:04 +00:00
skidder
55c4e0ac85 CLIENT_ADDRESS and NETWORK_PROTOCOL variables support 2004-11-26 01:01:27 +00:00
robocop
c2b5cbc541 Totally misc: consistency with the other places. 2004-11-16 06:16:19 +00:00
alexpeshkoff
6bd833026a restored broken by me const-correctness in remote 2004-11-15 15:52:57 +00:00
alexpeshkoff
ff5dd732d3 more active use of Firebird::string in remote 2004-11-07 14:44:59 +00:00
robocop
5a33aeef91 Misc: extra semicolons do not help. :-) 2004-11-07 10:38:13 +00:00
dimitr
2d36d98bdc 1) Backport my previous fix from B1_5_Release branch
2) Another events-related bugfix
3) Some cleanup
2004-10-20 17:42:36 +00:00
robocop
5b60cf7e33 Put some assertions, a strncpy and a correction of a debug msg 2004-09-24 06:42:39 +00:00
dimitr
a3f7978e5f Replaced sprintf() with either Firebird::string or snprintf().
Got rid of the literal numerics as array bounds.
Minor cleanup.
2004-09-22 20:33:07 +00:00
robocop
362f95df8a Got rid of some casts that were driving me nuts on each compilation 2004-09-22 08:54:42 +00:00
dimitr
ed0b83ad8a Fixed issue SF #571026. 2004-09-05 19:37:43 +00:00
dimitr
b4c3010dc8 Fixed possible SEGV errors in the op_connect handler. 2004-09-04 20:09:24 +00:00
dimitr
95562449e2 Applied patch by Chris Waters to support NAT by the events mechanism. 2004-08-01 17:44:24 +00:00
robocop
320fe78b42 Misc changes 2004-06-21 02:48:47 +00:00
fsg
66e4efb565 Fixed an old bug. Thanks to Torsten Martinsen. 2004-06-14 11:20:37 +00:00
brodsom
b9b39b630e -Rollback 2004-06-09 18:23:27 +00:00
brodsom
3d09805eab -C++ struct declaration style. 2004-06-08 18:41:33 +00:00
alexpeshkoff
1591a54e5e Thread cleanup:
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
skidder
277788de7a NetBSD port from James K. Lowden 2004-05-20 23:05:02 +00:00
brodsom
46b5652ab3 Macro cleaning 2004-05-18 22:01:53 +00:00
brodsom
98d9fe6e63 Macro cleaning 2004-05-18 16:32:07 +00:00
brodsom
b76a60e8b7 Move THREAD_ functions from thd.h to thread_proto.h (and fix unix build) 2004-05-17 22:30:09 +00:00
brodsom
36d6d40469 Macro cleaning 2004-05-17 10:22:34 +00:00
brodsom
ee34db7e20 Macro cleaning (THREAD_*) 2004-05-15 00:58:46 +00:00
brodsom
1ffe279896 -Avoid shadow warning 2004-05-12 19:39:17 +00:00
brodsom
62a4b10c22 -Replace define with const
-Remove ifdef cplusplus from internal code
-Remove unused macros
2004-05-06 18:09:24 +00:00
brodsom
80b424e346 -Replace define with const
-Move SYS_ERR, ERRNO, H_ERRNO and INET_ERRNO(ERRNO in inet.cpp) macros to common.h
-Remove unused macros
2004-05-05 21:55:13 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00