DynamoRIO / DynamoRIO/drmemory

UNADDR accessing page stored at PEB->pContextData

Open
#663 2 comments 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Migrated Priority-Low
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on November 02, 2011 11:37:30_

Timur hit an unaddr at 7713a9b6:
ntdll!SbGetCurrentSwitchContextUpdateCounter:
7713a99f 64a118000000 mov eax,fs:[00000018]
7713a9a5 8b4030 mov eax,[eax+0x30]
7713a9a8 8b8838020000 mov ecx,[eax+0x238]
7713a9ae 85c9 test ecx,ecx
7713a9b0 0f84ac2d0600 je ntdll!SbGetCurrentSwitchContextUpdateCounter+0x19 (7719d762)
7713a9b6 8b01 mov eax,[ecx]
7713a9b8 8b5104 mov edx,[ecx+0x4]
7713a9bb c3 ret

0:000> !vprot 0x001b0000
BaseAddress: 001b0000
AllocationBase: 001b0000
AllocationProtect: 00000004 PAGE_READWRITE
RegionSize: 00001000
State: 00001000 MEM_COMMIT
Protect: 00000004 PAGE_READWRITE
Type: 00020000 MEM_PRIVATE

new PEB fields (this is from a different process so ignore the values):
+0x230 WerRegistrationData : 0x2e6a0000
+0x234 WerShipAssertPtr : (null)
+0x238 pContextData : 0x00070000
+0x23c pImageHeaderHash : (null)
+0x240 TracingFlags : 0
+0x240 HeapTracingEnabled : 0y0
+0x240 CritSecTracingEnabled : 0y0
+0x240 SpareTracingBits : 0y000000000000000000000000000000 (0)

=> pContextData

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=663_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.