comdlg32: Fix potential buffer overrun of lpxx->lfFaceName in CFn_WMCommand.

Robert Shearman rob at codeweavers.com
Mon Feb 18 13:39:04 CST 2008


lpxx->lpFaceName has space for 64 characters, but str has space for 256. 
   Make sure to only copy a maximum of 64 characters by using lstrcpynW 
instead of lstrcpyW.
---
  dlls/comdlg32/fontdlg.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c9b0851e48a1baf5172a7fe030d406f2db16227e.diff
Type: text/x-patch
Size: 640 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080218/e0e6b9ef/attachment.bin 


More information about the wine-patches mailing list