20000506-17:46 GMT+1 Victor Szakats <info@szelvesz.hu>

This commit is contained in:
Viktor Szakats
2000-05-06 15:43:22 +00:00
parent 3aa92d7d36
commit f291e04f8b
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
20000506-17:46 GMT+1 Victor Szakats <info@szelvesz.hu>
* source/compiler/harbour.c
! hb_compGenPushDouble() buffer overflow bug fixed.
Thanks for Istvan Foldi.
20000505-19:26 GMT+1 Antonio Linares <alinares@fivetech.com>
* source/compiler/genobj32.c
* 4 bytes alignment compatible.

View File

@@ -2332,7 +2332,7 @@ void hb_compGenPushNil( void )
/* generates the pcode to push a double number on the virtual machine stack */
void hb_compGenPushDouble( double dNumber, BYTE bWidth, BYTE bDec )
{
BYTE pBuffer[ sizeof( double ) + sizeof( BYTE ) + sizeof( BYTE ) ];
BYTE pBuffer[ sizeof( double ) + sizeof( BYTE ) + sizeof( BYTE ) + 1 ];
pBuffer[ 0 ] = HB_P_PUSHDOUBLE;