2011-01-16 15:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/contrib/hblzf/hblzf.c
    ! fixed decompress buffer resizing
This commit is contained in:
Przemyslaw Czerpak
2011-01-16 14:49:45 +00:00
parent 0853196a9d
commit 959a53bbde
2 changed files with 6 additions and 3 deletions

View File

@@ -16,6 +16,10 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-01-16 15:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hblzf/hblzf.c
! fixed decompress buffer resizing
2011-01-16 00:40 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
* contrib/hbmxml/hbmxml.c
+ Added experimental hb_mxmlGetAttrsCount(), hb_mxmlGetAttrs(),

View File

@@ -190,13 +190,12 @@ HB_FUNC( HB_LZF_DECOMPRESS )
if( buffer && buffer_size )
{
HB_SIZE i = 1;
unsigned int uiResult;
do
{
buffer_size *= i++;
buffer = ( char * ) hb_xrealloc( buffer, buffer_size );
buffer_size <<= 1;
buffer = ( char * ) hb_xrealloc( buffer, buffer_size + 1 );
uiResult = lzf_decompress( in_data, in_len, buffer, buffer_size );
}