From 053f90539de0722696f1cdbb41b9387a65fcd841 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 5 Jan 2012 13:47:18 +0000 Subject: [PATCH] 2012-01-05 14:47 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/include/hbrdddbf.h * moved DBF record lock range for DB_DBFLOCK_HB64 to avoid potential problems with integer overflows in system or network transport layer. Warning: INCOMPATIBLE! all applications using DB_DBFLOCK_HB64 locking mode should be updated - it is not safe to concurrently access the same files using programs compiled with older Harbour versions and current one. --- harbour/ChangeLog | 10 ++++++++++ harbour/include/hbrdddbf.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f95ed2630a..bf0153627d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,16 @@ The license applies to all entries newer than 2009-04-28. */ +2012-01-05 14:47 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * harbour/include/hbrdddbf.h + * moved DBF record lock range for DB_DBFLOCK_HB64 to avoid potential + problems with integer overflows in system or network transport layer. + Warning: INCOMPATIBLE! + all applications using DB_DBFLOCK_HB64 locking mode should + be updated - it is not safe to concurrently access the + same files using programs compiled with older Harbour + versions and current one. + 2012-01-05 14:07 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/rtl/hbgtcore.c + added default value (0) for HB_GTI_KBDSHIFTS in GTs which diff --git a/harbour/include/hbrdddbf.h b/harbour/include/hbrdddbf.h index 712f3480d5..9b3ab6bb08 100644 --- a/harbour/include/hbrdddbf.h +++ b/harbour/include/hbrdddbf.h @@ -69,7 +69,7 @@ HB_EXTERN_BEGIN #define DBF_LOCKPOS_VFP 0x40000000UL #define DBF_LOCKPOS_VFPX 0x7ffffffeUL #define DBF_LOCKPOS_HB32 4000000000UL -#define DBF_LOCKPOS_HB64 HB_LL( 0x7FFFFFFF00000001 ) +#define DBF_LOCKPOS_HB64 HB_LL( 0x7F00000000000000 ) #define DBF_LOCKDIR_CLIPPER 1 #define DBF_LOCKDIR_CLIPPER2 1