Austin English : webservices: Allocate enough memory for WS_XML_TEXT_TYPE_DOUBLE on Valgrind.

Alexandre Julliard julliard at winehq.org
Fri Dec 23 13:54:00 CST 2016


Module: wine
Branch: master
Commit: 59112f2194873c3d19934cdc7b6cc48910bdbcd9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=59112f2194873c3d19934cdc7b6cc48910bdbcd9

Author: Austin English <austinenglish at gmail.com>
Date:   Fri Dec 23 12:52:39 2016 +0100

webservices: Allocate enough memory for WS_XML_TEXT_TYPE_DOUBLE on Valgrind.

Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/writer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c
index c1f1b0c..1ccac53 100644
--- a/dlls/webservices/writer.c
+++ b/dlls/webservices/writer.c
@@ -1369,7 +1369,7 @@ static HRESULT text_to_utf8text( const WS_XML_TEXT *text, WS_XML_UTF8_TEXT **ret
     case WS_XML_TEXT_TYPE_DOUBLE:
     {
         const WS_XML_DOUBLE_TEXT *double_text = (const WS_XML_DOUBLE_TEXT *)text;
-        unsigned char buf[24]; /* "-1.1111111111111111E-308" */
+        unsigned char buf[32]; /* "-1.1111111111111111E-308", oversized to address Valgrind limitations */
         unsigned short fpword;
         ULONG len;
 




More information about the wine-cvs mailing list