wined3d: Avoid wined3d_ftoa buffer overflow.

Jonathan Liu net147 at gmail.com
Tue Jan 14 04:45:42 CST 2014


The MSVC runtime may return a 3 digit exponent so the buffer must be at
least 17 characters instead of 16. This was due to commit
12f16f2127ffce9a05eedf008c3aa3732751a7e3.
---
  dlls/wined3d/arb_program_shader.c | 6 +++---
  dlls/wined3d/glsl_shader.c        | 4 ++--
  dlls/wined3d/utils.c              | 3 +++
  3 files changed, 8 insertions(+), 5 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Avoid-wined3d_ftoa-buffer-overflow.txt
Type: text/x-patch
Size: 2770 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140114/b6e133f3/attachment.bin>


More information about the wine-patches mailing list