From f291e04f8b59c2f9799e9c2e17f8a4497703c6e1 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 6 May 2000 15:43:22 +0000 Subject: [PATCH] 20000506-17:46 GMT+1 Victor Szakats --- harbour/ChangeLog | 6 ++++++ harbour/source/compiler/harbour.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 9b51f97a49..6fae956bcd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +20000506-17:46 GMT+1 Victor Szakats + + * source/compiler/harbour.c + ! hb_compGenPushDouble() buffer overflow bug fixed. + Thanks for Istvan Foldi. + 20000505-19:26 GMT+1 Antonio Linares * source/compiler/genobj32.c * 4 bytes alignment compatible. diff --git a/harbour/source/compiler/harbour.c b/harbour/source/compiler/harbour.c index 5fc2a77508..22cce1ec20 100644 --- a/harbour/source/compiler/harbour.c +++ b/harbour/source/compiler/harbour.c @@ -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;