2010-03-08 19:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/vm/macro.c
    ! fixed buffer overflow caused by wrong pointer type
      ( 'HB_ULONG*' instead of 'int *' )

  * harbour/src/vm/set.c
    ! fixed bug in MT mode - when new thread was created then _SET_PATH
      setting was not cloned but wrongly shared with parent thread - many
      thanks to Rossine for the information
This commit is contained in:
Przemyslaw Czerpak
2010-03-08 18:33:49 +00:00
parent ad67ab11cb
commit cd173dc1a7
3 changed files with 14 additions and 2 deletions

View File

@@ -17,6 +17,16 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-03-08 19:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/macro.c
! fixed buffer overflow caused by wrong pointer type
( 'HB_ULONG*' instead of 'int *' )
* harbour/src/vm/set.c
! fixed bug in MT mode - when new thread was created then _SET_PATH
setting was not cloned but wrongly shared with parent thread - many
thanks to Rossine for the information
2010-03-08 19:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/tests/test.prg
! Fixed missing connection parameters from PQ API calls.

View File

@@ -74,7 +74,7 @@
static void hb_macroFlagsInit( void * pFlags )
{
* ( ( HB_ULONG * ) pFlags ) = HB_SM_DEFAULT;
* ( ( int * ) pFlags ) = HB_SM_DEFAULT;
}
static HB_TSD_NEW( s_macroFlags, sizeof( int ), hb_macroFlagsInit, NULL );

View File

@@ -1169,7 +1169,7 @@ PHB_SET_STRUCT hb_setClone( PHB_SET_STRUCT pSrc )
memcpy( pSet, pSrc, sizeof( HB_SET_STRUCT ) );
pSet->hb_set_althan = pSet->hb_set_extrahan = pSet->hb_set_printhan = FS_ERROR;
pSet->hb_set_path = NULL;
pSet->hb_set_listener = NULL;
pSet->HB_SET_TYPEAHEAD = HB_DEFAULT_INKEY_BUFSIZE;
@@ -1193,6 +1193,8 @@ PHB_SET_STRUCT hb_setClone( PHB_SET_STRUCT pSrc )
if( pSet->HB_SET_OSCODEPAGE ) pSet->HB_SET_OSCODEPAGE = hb_strdup( pSet->HB_SET_OSCODEPAGE );
if( pSet->HB_SET_DBCODEPAGE ) pSet->HB_SET_DBCODEPAGE = hb_strdup( pSet->HB_SET_DBCODEPAGE );
hb_fsAddSearchPath( pSet->HB_SET_PATH, &pSet->hb_set_path );
return pSet;
}