crypt32: [resend] fix possible dereference of NULL ptr

Jeff Latimer lats at yless4u.com.au
Sun Jun 24 05:06:49 CDT 2007


This fixes the problem that at line 883 CertFindExtension can return 
NULL which makes ext possibly NULL.  As we are only here because 
nameAttr is NULL at line 881, the the call to CertRDNValueToStrW at line 
902 could be using NULL as a ptr.

Jeff
---
  dlls/crypt32/str.c |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 96e204001f67d1c0bb53b8621ed19e7b721e82e4.diff
Type: text/x-patch
Size: 602 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070624/01051297/96e204001f67d1c0bb53b8621ed19e7b721e82e4.bin


More information about the wine-patches mailing list