robocop
00c9d548a6
Handle zero-length strings even if we have our buffer full.
2006-04-09 06:53:38 +00:00
robocop
b8636c120b
Refactor this damn unreadable code and take into account the problem Adriano found with zero length file names in my previous commit.
2006-04-09 00:53:55 +00:00
robocop
1f22045df1
I think I'm fixing a potential buffer overrun here.
2006-04-07 04:51:13 +00:00
asfernandes
2b5eef3103
Correction
2006-04-07 02:55:34 +00:00
alexpeshkoff
f59a457b5d
validate port_context before use to avoid AV in remote
2006-04-06 13:34:09 +00:00
robocop
c5f2284b15
Style.
2006-04-06 08:18:53 +00:00
alexpeshkoff
74b7418943
we should not loose status vector held in status_exception
2006-03-15 17:25:49 +00:00
robocop
8f1cf8f2cb
Commit correct signature for events-related calls.
2006-03-10 08:23:40 +00:00
asfernandes
22eca372ab
Formatting
2006-03-07 03:12:48 +00:00
alexpeshkoff
402d918e74
Use named constant for buffer size
2006-03-06 13:51:58 +00:00
alexpeshkoff
b4ed43ddf8
1. Fixed win32 classic build.
...
2. Attempt to fix SF#1260310.
2006-03-06 11:03:19 +00:00
alexpeshkoff
9e21527396
fixed debugging code - thanks to Claudio
2006-03-05 10:26:45 +00:00
alexpeshkoff
a6151c44c9
Fixed SF bug 1385092
2006-03-03 16:20:42 +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
dccce62333
simpler way to detect redirection attempt
2006-01-06 12:29:12 +00:00
alexpeshkoff
8de8ef96ce
added Redirection parameter to firebird.conf
2005-12-21 10:10:37 +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
11b954f324
Fixed a couple of issues in the port cleanup logic:
...
- improper thread data operations
- no rollback for a broken INET port
2005-11-24 12:15:41 +00:00
robocop
2814294027
Misc.
2004-12-16 03:03:13 +00:00
skidder
0e68abffbf
Address the security issue in remote address handling code pointed by Claudio. Hack REMOTE server-side exception handling to make it not crash when exceptions actually happen. The latter seems to be the very old problem, in IB6 code looks the same
2004-11-29 04:39:20 +00:00
robocop
bb170bd3b6
isc_interpret is fb_interpret again.
...
Please do a full rebuild.
2004-11-28 01:03:05 +00:00
robocop
425bbc8ef9
Comment no longer applies.
2004-11-27 05:45:46 +00:00
skidder
55c4e0ac85
CLIENT_ADDRESS and NETWORK_PROTOCOL variables support
2004-11-26 01:01:27 +00:00
robocop
d6535351a2
Misc: style.
2004-11-24 09:22:07 +00:00
robocop
070eaa8415
Misc.
2004-11-18 08:40:13 +00:00
hvlad
b4a0d39fe1
Fix buffer overflow when string carried with status vector is too large. String will be truncated to 1023 bytes
2004-11-17 12:25:22 +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
skidder
3e26513b38
fb_interpret->isc_interpet, deprecate isc_interpete, clean interface a little bit
2004-10-25 03:53:03 +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
e4da3532f2
Nonsense cast
2004-09-24 06:46:04 +00:00
robocop
e6cb17cac6
Vulnerability reported by Daniel Urban.
...
First step: reorganize code.
Please do a full rebuild after retrieving those changes.
2004-09-22 01:59:39 +00:00
dimitr
95f97b91cf
Cleanup.
2004-09-05 13:53:56 +00:00
alexpeshkoff
c3db4aaa97
added (and used in sources) template to change and restore default pool
2004-08-30 18:11:08 +00:00
dimitr
0df4efd900
Fixed bug introduced by Blas' cleanup yesterday.
2004-08-28 07:30:17 +00:00
brodsom
aaaddf7642
Fix ,silence non initialized warnings
2004-08-26 23:27:46 +00:00
alexpeshkoff
273d93b517
fixed potential inconsistency, noticed by Claudio
2004-06-21 08:49:46 +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
brodsom
bf56ba0a45
-Inlining of *_thread_data macros.
...
-Solving another case of variable name = struct name.
2004-05-21 15:22:19 +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
brodsom
68cb86b274
- Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
...
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +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
c70343dc21
-Avoid shadow warning
2004-05-13 15:18:15 +00:00
brodsom
9e204004d6
-Avoid shadow warning
2004-05-12 21:47:36 +00:00
brodsom
1ffe279896
-Avoid shadow warning
2004-05-12 19:39:17 +00:00
brodsom
fbbc61156f
-Fix another incredibly stupid legacy variable naming, variable name = struct name.
2004-05-03 13:35:38 +00:00
skidder
43cb0d1ce4
Y-Valve handle translation layer
2004-05-02 23:06:37 +00:00
brodsom
0daa189563
Removing ib_stdio.h
2004-04-28 22:36:29 +00:00
dimitr
65d3e59dc1
Fixed possible AV in SS builds.
2004-03-24 20:12:35 +00:00
alexpeshkoff
1e6c7b18e9
fixed problem with loop in includes
2004-03-22 11:38:23 +00:00
skidder
2851f76d35
Fix warnings
2004-03-14 05:51:54 +00:00
skidder
dc7aab8f9c
Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed
2004-03-01 03:35:23 +00:00
robocop
2fa67d46bc
Cleanup
...
Reduce reinterpret and C casts
Fix isql so it can show all predefined blob types in readable form.
2004-02-24 05:34:44 +00:00
robocop
5c3c8abd9a
Big cleanup.
...
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
stryqx
0a6ab26acb
Let semaphore.h see the definition of gds__log for successful build
...
on FreeBSD.
2004-02-13 10:17:50 +00:00
robocop
2b295a9108
General cleanup. Sorry if I missed some occurrence.
2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa
Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static.
2004-01-21 07:18:30 +00:00
robocop
fd93837ec3
Cleanup:
...
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
robocop
84062732d8
More cleanup
2003-12-03 08:19:24 +00:00
robocop
9fafc348bf
const correctness
...
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
brodsom
9b7994233c
-Undo gds__vax_integer to isc_vax_integer and gds__event_* to isc_event_* changes
2003-11-16 01:52:44 +00:00
brodsom
c5253ae8a5
-Replace gds__ constants with isc_ contants
...
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
brodsom
4285bc623c
Removing gdsold.h and gds.h
2003-11-08 16:40:17 +00:00
brodsom
cda50f7f41
Extern "C" cleaning correction (detected by Claudio)
2003-11-07 13:20:15 +00:00
robocop
db77ffa605
const correctness, variables in scope, cleanup, etc.
2003-11-07 08:06:35 +00:00
brodsom
89e8f89f86
Extern "C" cleaning
2003-11-06 03:03:36 +00:00
robocop
35396625f5
const correctness
...
function signatures
variables in local scope
BOOLEAN -> bool
TEXT[32] as SqlIdentifier for DYN
Stop random garbage in firebird.msg's bytes 8 to 11
some cleanup
2003-11-05 09:02:33 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
brodsom
0ae432cf98
Style
2003-11-03 00:37:11 +00:00
robocop
cda707bd36
const correctness and other related changes
2003-11-01 10:26:43 +00:00
robocop
9ead7a37b4
const correctness
...
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
robocop
c931a674c2
Cleanup.
...
Hopefully harmless
It should fix the issue introduced with constness in gds__interprete for current applications.
2003-09-29 12:43:14 +00:00
robocop
484c6ec372
Cleanup, const correctness, variables in scope, etc.
...
Having done my best to merge everyone else's changes, I hope the tree can be build with whatever other tools != MSVC6.
2003-09-25 11:49:12 +00:00
skidder
4f375d534d
Update Linux CS build for my REMOTE changes
2003-09-23 22:34:14 +00:00
skidder
30d8ca94f2
Fix SuperServer 1-minute lock-up under contention bug.
...
With previous logic all spare threads were notified and performed
expensive loop on each request arrival. New logic wakes up only
one thread per request. (the same fix was performed in 2.0 SS lock manager
to avoid waking up all blocked threads on each lock request resolution).
As an (unexpected) result of this changes SS performance significantly
improved. Some artificial tests show timing improvements by
factor between 2 and 3.
2003-09-16 20:59:45 +00:00
brodsom
fa09e72d4e
Corrections (Thanks to Claudio)
2003-09-13 09:15:06 +00:00
brodsom
65d792cda0
-BOOLEAN cleaning
2003-09-11 18:59:34 +00:00
skidder
77b17de987
NBACKUP-related changes and some clean-up
2003-09-08 20:23:46 +00:00
brodsom
8624a7c209
-Use NULL instead 0 for null pointers
...
-Remove unneeded casts
2003-09-01 07:58:04 +00:00
brodsom
62a397922c
-Remove GDS_VAL and GDS_REF
2003-08-30 01:43:08 +00:00
brodsom
602c201989
-Remove NULL_PTR
...
-Remove unneeded NULL casts
-Remove (void) function return cast
2003-08-28 13:07:29 +00:00
aafemt
9dbf56310a
sdl is UCHAR again
2003-08-15 10:23:46 +00:00
brodsom
5a52e128ce
-Fix signed/unsigned comparison warning
2003-08-10 11:08:56 +00:00
aafemt
cd128d6ce8
Rollback public API changes by Mike Nordell
2003-08-07 10:37:34 +00:00
aafemt
b672867147
sdl is a plain char again. Some cleanup around it
2003-07-24 10:21:42 +00:00
brodsom
5829455596
Move win32 specific sources in remote to remote/os/win32
2003-07-14 23:29:45 +00:00
brodsom
3e8835251f
Changes only inside #ifdef DEBUG.
...
Needed to be able to build with -DDEBUG on gcc.(there are also some format corrections)
2003-06-30 11:26:38 +00:00
dimitr
eead4406c1
Small fixes for WNET and XNET:
...
1. Wake up event thread on disconnect.
2. Shutdown broken port properly.
2003-05-05 11:44:02 +00:00
dimitr
8ee32bb1cb
Rolled back asymmetric protocol due to found bugs and lack of time to fix them in v1.5.
2003-05-02 17:17:09 +00:00
aafemt
e5146fd644
Introduce of ISC_STATUS_ARRAY
2003-04-16 10:18:51 +00:00
aafemt
931da98b2f
STATUS -> ISC_STATUS
2003-04-10 10:31:28 +00:00
dimitr
50f6fc556f
Accept only asymmetric protocols on the server side.
2003-04-09 10:48:33 +00:00
brodsom
1a2a9c0129
REMOTE warning fixes
2003-04-08 01:06:46 +00:00
tamlin
96c5d5e8f3
Close Win32 handles at exit.
2003-03-11 05:53:55 +00:00
brodsom
3468459299
Return fb_assert to assert (rollback)
2003-03-04 03:42:23 +00:00
brodsom
1d8a030e41
Change assert to fb_assert when gdsassert.h is included. Separate the standard macro from the FB one.
2003-02-28 15:07:36 +00:00
brodsom
3cb91fce80
Remove PIPE and STACK defines (PIPE_SERVER, PIPE_CLIENT, PIPE_LIBRARY, PIPE_SERVER_YVALUE, PIPE_BRIDGE_TO_V3, V3, V3_PATH, ALTPIPE)(STACK_EFFICIENT, STACK_REDUCTION)
2003-02-14 02:24:44 +00:00
dimitr
9113c1ebd5
Fixed exception handling.
2003-02-13 13:02:04 +00:00
dimitr
f833079b2f
CONST -> const
2003-02-13 09:33:26 +00:00
brodsom
7f835d377c
Change define name REMOTE_DEBUG_MEMORY to DEBUG_REMOTE_MEMORY
2003-02-11 00:54:58 +00:00
alexpeshkoff
b8610ddefe
Finished y-valve C++ conversion cleanup
2003-01-22 16:37:59 +00:00
dimitr
fba5c08f2f
XNET support on win32. Untested.
2003-01-19 12:18:24 +00:00
dimitr
127f21f356
no message
2003-01-15 12:15:07 +00:00
alexpeshkoff
20961a1396
Rename all links to why.cpp handle to struct why_hndl * (or FRBRD *)
2002-12-16 16:52:35 +00:00
dimitr
95579c893a
Renamed MSG to REM_MSG.
2002-11-19 12:40:54 +00:00
dimitr
5f61e44ddc
Global names change:
...
FBOK=>FB_SUCCESS
FAILURE=>FB_FAILURE
xxx_FBOK=>xxx_SUCCESS
2002-11-14 08:33:08 +00:00
kkuznetsov
6887f405ab
Renaming all occurences of SUCCESS to FBOK
2002-11-13 15:01:21 +00:00
eku
870d7c1999
Fixed compiler warnings.
2002-11-06 07:23:19 +00:00
dimitr
e51cbb97ef
Finilized Sean's cleanup.
2002-10-31 11:58:41 +00:00
seanleyne
b3ad604669
Removed support for obsolete "PC_PLATFORM" define
2002-10-31 05:06:02 +00:00
seanleyne
0b82f4aa07
Removed obsolete "Netware" port
2002-10-30 06:40:58 +00:00
eku
0c1b55dd08
Code cleanup:
...
Since we already have the define ISC_STATUS_LENGTH for the the length of
the status vector, we should use it! Replaced 'status[20]' with
'status[ISC_STATUS_LENGTH]'.
Replaced the different symbolic names for the maximum length of a path
(MAX_PATH, MAX_PATH_LENGTH, MAXPATHLEN) with one uniq symbol MAXPATHLEN.
2002-10-24 09:01:44 +00:00
eku
da93f6697f
Autoconf enhancements:
...
o autoconf v2.53 and later is now required to generate configure
(sorry, but it makes many tasks easier)
o improved tests for mmap, socklen_t and offt_64
o added tests for atexit, on_exit, (v)fork, set(p)grp, setpgid and flock
o added test for the keyword 'volatile'
o fixed errors in configure.in
o updated config.h.in and autoconfig_msvc.h (the latter may be incorrect)
o replaced VOLATILE by volatile
o removed SETPGRP and ATEXIT
o replaced NO_FLOCK by HAVE_FLOCK
o SIG_FPTR cleanup
o vfork cleanup
2002-09-11 11:30:50 +00:00
dimitr
e759de0b11
Merging changes from fb1.
2002-06-29 08:49:39 +00:00
bellardo
2437e0de0a
We are using exceptions now, clean out old setjmp/longjmp code.
2002-04-04 05:43:12 +00:00
tamlin
2a3a320010
Cleanup and bugfixing
2002-03-31 00:40:08 +00:00
tamlin
5ae485f0b5
cleaning up
2001-12-29 11:41:29 +00:00
tamlin
80f7fb6dd4
New C++ memory pool
2001-12-24 02:51:06 +00:00
skywalker
4c4bc9a95c
Global changes for new Makefile and firebird2 compile on linux
2001-07-29 23:43:24 +00:00
tamlin
9a776a604e
First steps towards a C++ conversion.
2001-05-23 13:26:42 +00:00