2011-02-11 00:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* src/rtl/base64d.c
    ! HB_BASE64DECODE(): Forgot to return sized buffer in recently 
      added C version of this function.
    ; Please review and/or stree-test this function.
This commit is contained in:
Viktor Szakats
2011-02-10 23:11:16 +00:00
parent bf35e61a95
commit d09ba62c09
2 changed files with 8 additions and 3 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-02-11 00:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/base64d.c
! HB_BASE64DECODE(): Forgot to return sized buffer in recently
added C version of this function.
; Please review and/or stree-test this function.
2011-02-10 23:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
% PathMakeAbsolute() converted to macro.

View File

@@ -168,10 +168,9 @@ HB_FUNC( HB_BASE64DECODE )
if( len <= INT_MAX ) /* TOFIX */
{
char * code = ( char * ) hb_xgrab( ( ( ( ( len - 1 ) * 3 ) / 4 ) + 1 ) * sizeof( char ) );
HB_SIZE nSize = base64_decode_block( hb_parcx( 1 ), len, code );
base64_decode_block( hb_parcx( 1 ), len, code );
hb_retc_buffer( code );
hb_retclen_buffer( code, nSize );
}
else
hb_retc_null();