2015-03-21 12:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rdd/dbf1.c
    ! restored the line with initialization of allocated memory buffer
      I deleted by mistake removing my private comments before commit.
      Without this line sort could randomly crash on small tables (less
      then 65537 sorted records)
This commit is contained in:
Przemysław Czerpak
2015-03-21 12:54:05 +01:00
parent db16cc8861
commit 3c4c67254c
2 changed files with 8 additions and 0 deletions

View File

@@ -10,6 +10,13 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-03-21 12:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbf1.c
! restored the line with initialization of allocated memory buffer
I deleted by mistake removing my private comments before commit.
Without this line sort could randomly crash on small tables (less
then 65537 sorted records)
2015-03-20 16:34 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/Makefile
- include/hbdbsort.h

View File

@@ -5378,6 +5378,7 @@ static HB_ERRCODE hb_dbfSortFinish( LPDBSORTREC pSortRec )
pSortRec->pSwapPages[ 0 ].pnRecords = hb_dbfSortSort( pSortRec );
pSortRec->nPages = 1;
pSortRec->pnIndex = ( HB_SORTIDX * ) hb_xrealloc( pSortRec->pnIndex, sizeof( HB_SORTIDX ) );
pSortRec->pnIndex[ 0 ] = 0;
if( pSortRec->pSortArray )
{
hb_itemRelease( pSortRec->pSortArray );