ChangeSet ID: 10902 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@wine.codeweavers.com 2004/01/28 15:40:01 Modified files: dlls/kernel : except.c Log message: Make sure that there is extra information in the exception record before accessing it in check_resource_write. Patch: http://cvs.winehq.org/patch.py?id=10902 Old revision New revision Changes Path 1.2 1.3 +1 -0 wine/dlls/kernel/except.c Index: wine/dlls/kernel/except.c diff -u -p wine/dlls/kernel/except.c:1.2 wine/dlls/kernel/except.c:1.3 --- wine/dlls/kernel/except.c:1.2 Wed May 22 19:25:46 2013 +++ wine/dlls/kernel/except.c Wed May 22 19:25:46 2013 @@ -415,6 +415,7 @@ inline static BOOL check_resource_write( 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;