DynamoRIO / DynamoRIO/drmemory

Likely improperly handled ioctl in bcrypt.dll causes false positive uninit

Open
#748 1 comment 0 reactions 0 assignees View on GitHub
Bug-FalsePositive FalsePos-Syscall Migrated OpSys-Windows Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [rnk@google.com](https://code.google.com/u/rnk@google.com/) on January 12, 2012 14:21:07_

Report: http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%20full%29/builds/333/steps/memory%20test%3A%20crypto/logs/stdio UNINITIALIZED READ: reading 0x0046f9f0-0x0046f9f4 4 byte(s) within 0x0046f9e4-0x0046fa4c
#0 system call NtDeviceIoControlFile InputBuffer
#1 bcrypt.dll!BCryptUnregisterConfigChangeNotify +0x87 (0x748038b5 )
#2 bcrypt.dll!BCryptGetFipsAlgorithmMode +0x6a0 (0x748037d8 )
#3 ntdll.dll!RtlQueryEnvironmentVariable +0x240 (0x77c59930 )
#4 ntdll.dll!LdrShutdownProcess +0x140 (0x77c78fba )
#5 ntdll.dll!RtlExitUserProcess +0x73 (0x77c78e5c )
#6 KERNEL32.dll!ExitProcess +0x14 (0x760679f5 )
#7 __crtExitProcess [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0dat.c:731]
#8 doexit [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0dat.c:644]
#9 exit [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0dat.c:412]
#10 __tmainCRTStartup [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:270]
#11 mainCRTStartup [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:181]
#12 KERNEL32.dll!BaseThreadInitThunk

This was encountered during shutdown while running crypto_unittests.exe from Chromium.

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

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.