Piotr Caban : ucrtbase: Fix buffer overflow error when printing hexadecimal floating point number.
Alexandre Julliard
julliard at winehq.org
Wed Jul 8 15:34:36 CDT 2020
Module: wine
Branch: master
Commit: 61dbb53fefac9b825656468f858eeac06c98c9d3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=61dbb53fefac9b825656468f858eeac06c98c9d3
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Jul 8 19:47:40 2020 +0200
ucrtbase: Fix buffer overflow error when printing hexadecimal floating point number.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/printf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h
index 69eb8b1955..81960c19f6 100644
--- a/dlls/msvcrt/printf.h
+++ b/dlls/msvcrt/printf.h
@@ -415,7 +415,7 @@ static inline int FUNC_NAME(pf_output_hex_fp)(FUNC_NAME(puts_clbk) pf_puts, void
{ '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' }
};
- APICHAR pfx[16], sfx[8], *p;
+ APICHAR pfx[4+MANT_BITS/4+1], sfx[8], *p;
ULONGLONG mant;
int len = 0, sfx_len = 0, r, exp;
More information about the wine-cvs
mailing list