Re: inetcomm: possible null pointer dereferences
5 Dec
2008
5 Dec
'08
9 a.m.
On Thursday 04 December 2008 21:32:37 Gregor Schneider wrote:
- TRACE("(%s)\n", pszEmailFrom); - if (!pszEmailFrom) return E_INVALIDARG;
+ TRACE("(%s)\n", pszEmailFrom); + + len = sizeof(szCommandFormat) - 2 /* "%s" */ + strlen(pszEmailFrom); +
Instead of moving the trace down you should use debugstr_a(), which handles the NULL pointer for you. -Hans
6306
Age (days ago)
6306
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hans Leidekker