DynamoRIO / DynamoRIO/drmemory

Uninits when dealing with SetNamedSecurityInfo

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

Description

_From [timurrrr@google.com](https://code.google.com/u/timurrrr@google.com/) on June 03, 2011 07:54:19_

Repro attached.
Before running the test, please create an empty testfile.txt in the working dir.
// Tested on XP 32-bit

All uninits match the following suppression:
UNINITIALIZED READ
...
ntdll.dll!RtlSetSecurityObject
ntdll.dll!RtlNewSecurityObjectEx
ADVAPI32.dll!CreatePrivateObjectSecurityEx
NTMARTA.dll!AccRewriteSetNamedRights
NTMARTA.dll!AccRewriteSetNamedRights
ADVAPI32.dll!SetNamedSecurityInfo*

where [...] matches
1) ntdll.dll!RtlAllocateHeap \ ntdll.dll!RtlSetSecurityObject
2) ntdll.dll!wcsncpy \ ntdll.dll!RtlSetSecurityObject
3) system call NtQueryInformationToken (xref issue #380 )

-----------
Also it has one "POSSIBLE LEAK" report below SetFileSecurity:

Error `#17`: POSSIBLE LEAK 28 direct bytes 0x00164ce0-0x00164cfc + 0 indirect bytes
0x76f61382 WLDAP32.dll!Ordinal325
0x76f61302 WLDAP32.dll!Ordinal325
0x76f615ed WLDAP32.dll!Ordinal325
0x76f614e0 WLDAP32.dll!Ordinal325
0x76f61178 WLDAP32.dll!Ordinal325
0x7c90118a ntdll.dll!LdrInitializeThunk
0x7c91b5d2 ntdll.dll!LdrFindResourceDirectory_U
0x7c9162db ntdll.dll!RtlValidateUnicodeString
0x7c91643d ntdll.dll!LdrLoadDll
0x7c801bbd KERNEL32.dll!LoadLibraryExW
0x7c80aefc KERNEL32.dll!LoadLibraryW
0x77dea4ff ADVAPI32.dll!SetFileSecurityW
0x00401033 test.exe!main
test.cpp:15

**Attachment:** [test.cpp](http://code.google.com/p/drmemory/issues/detail?id=435)

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

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.