Re: [v4 PATCH] comctl32/tooltip: Protect TTM_ADDTOOLW from invalid text pointers
29 Feb
2016
29 Feb
'16
6:57 a.m.
Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> writes:
@@ -1041,6 +1041,9 @@ TOOLTIPS_AddToolT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW) if (ti->cbSize >= TTTOOLINFOW_V2_SIZE && !ti->lpszText && isW) return FALSE;
+ if(isW && ti->lpszText && IsBadReadPtr(ti->lpszText, sizeof(WCHAR))) + return FALSE;
You want IsBadStringPtrW, and this should most likely be merged with the check above it one way or another. -- Alexandre Julliard julliard(a)winehq.org
3573
Age (days ago)
3573
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard