2010-03-22 14:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/wafunc.c
! added protection against possible GPF when wrong array with field
names is passed to __dbTrans() or relative functions
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-03-22 14:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/rdd/wafunc.c
|
||||
! added protection against possible GPF when wrong array with field
|
||||
names is passed to __dbTrans() or relative functions
|
||||
|
||||
2010-03-22 12:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/include/hbdefs.h
|
||||
+ added HB_SIZE_MAX macro
|
||||
|
||||
@@ -855,11 +855,9 @@ static const char * hb_dbTransFieldPos( PHB_ITEM pFields, HB_USHORT uiField )
|
||||
pItem = hb_arrayGetItemPtr( pFields, uiField );
|
||||
if( pItem )
|
||||
{
|
||||
HB_TYPE type = hb_itemType( pItem );
|
||||
|
||||
if( type & HB_IT_ARRAY )
|
||||
if( HB_IS_ARRAY( pItem ) )
|
||||
szField = hb_arrayGetCPtr( pItem, DBS_NAME );
|
||||
else if( type & HB_IT_STRING )
|
||||
else
|
||||
szField = hb_itemGetCPtr( pItem );
|
||||
|
||||
if( * szField == '\0' )
|
||||
@@ -870,8 +868,8 @@ static const char * hb_dbTransFieldPos( PHB_ITEM pFields, HB_USHORT uiField )
|
||||
}
|
||||
|
||||
HB_ERRCODE hb_dbTransStruct( AREAP lpaSource, AREAP lpaDest,
|
||||
LPDBTRANSINFO lpdbTransInfo,
|
||||
PHB_ITEM *pStruct, PHB_ITEM pFields )
|
||||
LPDBTRANSINFO lpdbTransInfo,
|
||||
PHB_ITEM *pStruct, PHB_ITEM pFields )
|
||||
{
|
||||
HB_USHORT uiFields, uiSize, uiCount, uiPosSrc, uiPosDst, uiSizeSrc, uiSizeDst;
|
||||
HB_ERRCODE errCode;
|
||||
|
||||
Reference in New Issue
Block a user