Commit 23ff2d51 authored by Alexandre Julliard's avatar Alexandre Julliard

Make sure that there is extra information in the exception record

before accessing it in check_resource_write.
parent 5e07be4e
......@@ -415,6 +415,7 @@ inline static BOOL check_resource_write( const EXCEPTION_RECORD *rec )
MEMORY_BASIC_INFORMATION info;
if (rec->ExceptionCode != EXCEPTION_ACCESS_VIOLATION) return FALSE;
if (rec->NumberParameters < 2) return FALSE;
if (!rec->ExceptionInformation[0]) return FALSE; /* not a write access */
addr = (void *)rec->ExceptionInformation[1];
if (!VirtualQuery( addr, &info, sizeof(info) )) return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment