[pkg-wine-party] [wine] 43/45: webservices: Allocate enough memory for WS_XML_TEXT_TYPE_DOUBLE on Valgrind.

Michael Gilbert mgilbert at moszumanska.debian.org
Sun Jan 1 18:50:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

mgilbert pushed a commit to branch upstream
in repository wine.

commit 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;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list