[2/2] webservices: Allocate enough memory for WS_XML_TEXT_TYPE_DOUBLE on Valgrind.
Hans Leidekker
hans at codeweavers.com
Fri Dec 23 05:52:39 CST 2016
From: Austin English <austinenglish at gmail.com>
Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
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;
--
2.1.4
More information about the wine-patches
mailing list