Author: akhaldi
Date: Sun Mar 8 13:16:46 2015
New Revision: 66607
URL:
http://svn.reactos.org/svn/reactos?rev=66607&view=rev
Log:
[NOTEPAD] Prevent some NULL pointer dereferences. CID 502217. By Ricardo Hanke. CORE-9337
Modified:
trunk/reactos/base/applications/notepad/main.c
Modified: trunk/reactos/base/applications/notepad/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/main.c [iso-8859-1] Sun Mar 8 13:16:46 2015
@@ -115,6 +115,11 @@
{
BOOL bMatches;
size_t iTargetLength;
+
+ if ((!pFindReplace) || (!pszText))
+ {
+ return FALSE;
+ }
iTargetLength = _tcslen(pFindReplace->lpstrFindWhat);