Austin English : webservices: Allocate enough memory for WS_XML_TEXT_TYPE_DOUBLE on Valgrind.
Module: wine Branch: master Commit: 59112f2194873c3d19934cdc7b6cc48910bdbcd9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=59112f2194873c3d19934cdc7b... Author: Austin English <austinenglish(a)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(a)gmail.com> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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;
participants (1)
-
Alexandre Julliard